test: add devno in the tests for s390x

Add test with devno param

Signed-off-by: Alice Frosi <afrosi@de.ibm.com>
This commit is contained in:
Alice Frosi
2019-07-01 13:50:20 +02:00
parent 9cf98da0be
commit 65cc343f7b
4 changed files with 67 additions and 19 deletions

View File

@@ -557,7 +557,7 @@ func TestQMPNetCCWDeviceAdd(t *testing.T) {
cfg := QMPConfig{Logger: qmpTestLogger{}}
q := startQMPLoop(buf, cfg, connectedCh, disconnectedCh)
checkVersion(t, connectedCh)
err := q.ExecuteNetCCWDeviceAdd(context.Background(), "br0", "virtio-0", "02:42:ac:11:00:02", "0x7", "", 8)
err := q.ExecuteNetCCWDeviceAdd(context.Background(), "br0", "virtio-0", "02:42:ac:11:00:02", DevNo, 8)
if err != nil {
t.Fatalf("Unexpected error %v", err)
}