From baffef0ef082bd6e8c98d2cbe0f3f1a6a1eeb5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 7 Jan 2016 02:20:07 +0100 Subject: [PATCH] tests: fix qvm-move-to-vm error code checking Currently error code is 28 (ENOSPC). But generally any non-zero is expected result here. Fix test for QubesOS/qubes-issues#1355 --- tests/vm_qrexec_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vm_qrexec_gui.py b/tests/vm_qrexec_gui.py index 3c3f12ea..f1778090 100644 --- a/tests/vm_qrexec_gui.py +++ b/tests/vm_qrexec_gui.py @@ -634,7 +634,7 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin): # Close GUI error message self.enter_keys_in_window('Error', ['Return']) p.wait() - self.assertEqual(p.returncode, 255, "qvm-move-to-vm should fail") + self.assertNotEqual(p.returncode, 0, "qvm-move-to-vm should fail") retcode = self.testvm1.run("test -f testfile", wait=True) self.assertEqual(retcode, 0, "testfile should not be deleted in " "source VM")