Skip to contentSkip to conversation

tests: Remove unneeded "-vnc none" option

PATCH In review Eduardo Habkost 5 participants 6 messages Oct 24, 2016 – Oct 31, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: Remove unneeded "-vnc none" option

Some tests use the "-vnc none" option without any clear reason, making those tests break when --disable-vnc is specified on ./configure. Remove the unnecessary option.

---
 tests/ide-test.c      | 1 -
 tests/ipmi-bt-test.c  | 2 +-
 tests/ipmi-kcs-test.c | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
tests/ide-test.c +0 -1
index a8a4081..3fbcb75 100644
@@ -582,7 +582,6 @@ static void test_retry_flush(const char *machine)
     prepare_blkdebug_script(debug_path, "flush_to_disk");
 
     ide_test_start(
-        "-vnc none "
         "-drive file=blkdebug:%s:%s,if=ide,cache=writeback,format=raw,"
         "rerror=stop,werror=stop",
         debug_path, tmp_path);
tests/ipmi-bt-test.c +1 -1
index be9005e..ad1e97e 100644
@@ -415,7 +415,7 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none"
+    cmdline = g_strdup_printf(
           " -chardev socket,id=ipmi0,host=localhost,port=%d,reconnect=10"
           " -device ipmi-bmc-extern,chardev=ipmi0,id=bmc0"
           " -device isa-ipmi-bt,bmc=bmc0", emu_port);
tests/ipmi-kcs-test.c +1 -1
index 3750389..9cf0b34 100644
@@ -276,7 +276,7 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none -device ipmi-bmc-sim,id=bmc0"
+    cmdline = g_strdup_printf("-device ipmi-bmc-sim,id=bmc0"
                               " -device isa-ipmi-kcs,bmc=bmc0");
     qtest_start(cmdline);
     qtest_irq_intercept_in(global_qtest, "ioapic");
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Eduardo Habkost

Some tests use the "-vnc none" option without any clear reason, making those tests break when --disable-vnc is specified on ./configure. Remove the unnecessary option.

---
 tests/ide-test.c      | 1 -
 tests/ipmi-bt-test.c  | 2 +-
 tests/ipmi-kcs-test.c | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
tests/ide-test.c +0 -0
index a8a4081..3fbcb75 100644

tests/ide-test.c static void test_retry_flush(const char *machine) · line 587

Quoted 7 lines
tests/ide-test.c +0 -1
@@ -582,7 +582,6 @@ static void test_retry_flush(const char *machine)
     prepare_blkdebug_script(debug_path, "flush_to_disk");
 
     ide_test_start(
-        "-vnc none "
         "-drive file=blkdebug:%s:%s,if=ide,cache=writeback,format=raw,"
         "rerror=stop,werror=stop",
         debug_path, tmp_path);
Quoted 27 lines
tests/ipmi-bt-test.c +1 -1
index be9005e..ad1e97e 100644
@@ -415,7 +415,7 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none"
+    cmdline = g_strdup_printf(
           " -chardev socket,id=ipmi0,host=localhost,port=%d,reconnect=10"
           " -device ipmi-bmc-extern,chardev=ipmi0,id=bmc0"
           " -device isa-ipmi-bt,bmc=bmc0", emu_port);
tests/ipmi-kcs-test.c +1 -1
index 3750389..9cf0b34 100644
@@ -276,7 +276,7 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none -device ipmi-bmc-sim,id=bmc0"
+    cmdline = g_strdup_printf("-device ipmi-bmc-sim,id=bmc0"
                               " -device isa-ipmi-kcs,bmc=bmc0");
     qtest_start(cmdline);
     qtest_irq_intercept_in(global_qtest, "ioapic");
Tested-by on v1 1/1
#2 lore raw
In reply to Eduardo Habkost
Quoted 41 lines · Eduardo Habkost

Some tests use the "-vnc none" option without any clear reason, making those tests break when --disable-vnc is specified on ./configure. Remove the unnecessary option.

---
  tests/ide-test.c      | 1 -
  tests/ipmi-bt-test.c  | 2 +-
  tests/ipmi-kcs-test.c | 2 +-
  3 files changed, 2 insertions(+), 3 deletions(-)
tests/ide-test.c +0 -1
index a8a4081..3fbcb75 100644
@@ -582,7 +582,6 @@ static void test_retry_flush(const char *machine)
      prepare_blkdebug_script(debug_path, "flush_to_disk");
 
      ide_test_start(
-        "-vnc none "
          "-drive file=blkdebug:%s:%s,if=ide,cache=writeback,format=raw,"
          "rerror=stop,werror=stop",
          debug_path, tmp_path);
tests/ipmi-bt-test.c +1 -1
index be9005e..ad1e97e 100644
@@ -415,7 +415,7 @@ int main(int argc, char **argv)
      /* Run the tests */
      g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none"
+    cmdline = g_strdup_printf(
            " -chardev socket,id=ipmi0,host=localhost,port=%d,reconnect=10"
            " -device ipmi-bmc-extern,chardev=ipmi0,id=bmc0"
            " -device isa-ipmi-bt,bmc=bmc0", emu_port);
tests/ipmi-kcs-test.c +0 -0
index 3750389..9cf0b34 100644

tests/ipmi-kcs-test.c int main(int argc, char **argv) · line 280

Quoted 6 lines
tests/ipmi-kcs-test.c +1 -1
@@ -276,7 +276,7 @@ int main(int argc, char **argv)
      /* Run the tests */
      g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none -device ipmi-bmc-sim,id=bmc0"
+    cmdline = g_strdup_printf("-device ipmi-bmc-sim,id=bmc0"
                                " -device isa-ipmi-kcs,bmc=bmc0");
Quoted 2 lines
tests/ipmi-kcs-test.c +0 -0
      qtest_start(cmdline);
      qtest_irq_intercept_in(global_qtest, "ioapic");
Reviewed-by on v1 1/1
#3 lore raw
In reply to Eduardo Habkost
Quoted 5 lines · Eduardo Habkost

Some tests use the "-vnc none" option without any clear reason, making those tests break when --disable-vnc is specified on ./configure. Remove the unnecessary option.

FWIW

Quoted 46 lines
---
 tests/ide-test.c      | 1 -
 tests/ipmi-bt-test.c  | 2 +-
 tests/ipmi-kcs-test.c | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
tests/ide-test.c +0 -1
index a8a4081..3fbcb75 100644
@@ -582,7 +582,6 @@ static void test_retry_flush(const char *machine)
     prepare_blkdebug_script(debug_path, "flush_to_disk");
 
     ide_test_start(
-        "-vnc none "
         "-drive file=blkdebug:%s:%s,if=ide,cache=writeback,format=raw,"
         "rerror=stop,werror=stop",
         debug_path, tmp_path);
tests/ipmi-bt-test.c +1 -1
index be9005e..ad1e97e 100644
@@ -415,7 +415,7 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none"
+    cmdline = g_strdup_printf(
           " -chardev socket,id=ipmi0,host=localhost,port=%d,reconnect=10"
           " -device ipmi-bmc-extern,chardev=ipmi0,id=bmc0"
           " -device isa-ipmi-bt,bmc=bmc0", emu_port);
tests/ipmi-kcs-test.c +1 -1
index 3750389..9cf0b34 100644
@@ -276,7 +276,7 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none -device ipmi-bmc-sim,id=bmc0"
+    cmdline = g_strdup_printf("-device ipmi-bmc-sim,id=bmc0"
                               " -device isa-ipmi-kcs,bmc=bmc0");
     qtest_start(cmdline);
     qtest_irq_intercept_in(global_qtest, "ioapic");
Signature · 1 line
2.7.4
#5 lore raw
Quoted 10 lines · Kevin Wolf

Am 24.10.2016 um 18:25 hat Eduardo Habkost geschrieben:

Quoted 5 lines

Some tests use the "-vnc none" option without any clear reason, making those tests break when --disable-vnc is specified on ./configure. Remove the unnecessary option.

Who is supposed to merge this?

I will do it.

Signature · 1 line
Eduardo