console-watcher: use console watcher to monitor guest console outputs

Import new console watcher to monitor guest console outputs, and will be
only effective when we turn on enable_debug option.
Guest console outputs may include guest kernel debug info, agent debug info,
etc.

Fixes: #389

Signed-off-by: Penny Zheng penny.zheng@arm.com
This commit is contained in:
Penny Zheng
2020-07-15 05:44:02 +00:00
parent 1099a28830
commit 7f3e8959c5
11 changed files with 183 additions and 117 deletions

View File

@@ -314,9 +314,10 @@ func TestQemuGetSandboxConsole(t *testing.T) {
sandboxID := "testSandboxID"
expected := filepath.Join(q.store.RunVMStoragePath(), sandboxID, consoleSocket)
result, err := q.getSandboxConsole(sandboxID)
proto, result, err := q.getSandboxConsole(sandboxID)
assert.NoError(err)
assert.Equal(result, expected)
assert.Equal(proto, consoleProtoUnix)
}
func TestQemuCapabilities(t *testing.T) {