Explorar el Código

tests: workaround a race in qrexec test

qrexec-client-vm may return earlier than it's child process (it exits
right away, without waiting for its child). Add a small wait before
reading exit code from a file.
Marek Marczykowski-Górecki hace 3 años
padre
commit
8b076dfe5f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      qubes/tests/integ/qrexec.py

+ 1 - 0
qubes/tests/integ/qrexec.py

@@ -201,6 +201,7 @@ class TC_00_QrexecMixin(object):
                     self.testvm1.run_for_stdio('''\
                         /usr/lib/qubes/qrexec-client-vm dom0 test.Abort \
                             /bin/sh -c 'cat /dev/zero; echo $? >/tmp/exit-code';
+                            sleep 1;
                             e=$(cat /tmp/exit-code);
                             test $e -eq 141 -o $e -eq 1'''),
                     timeout=10))