Skip to content

Commit 4d57269

Browse files
committed
fix file creation test
the test was verifying that the return value was not None instead of checking the command return code Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent f334bd2 commit 4d57269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def start_background_process(self, cmd: str) -> str:
313313
remote_cmd = f'nohup bash -c "{remote_cmd} &>/dev/null &"'
314314
self.ssh(remote_cmd, background=True)
315315

316-
wait_for(lambda: self.ssh_with_result(['test', '-f', pidfile]),
316+
wait_for(lambda: self.ssh_with_result(['test', '-f', pidfile]).returncode == 0,
317317
"wait for pid file %s to exist" % pidfile)
318318
pid = self.ssh(['cat', pidfile])
319319
self.ssh(['rm', '-f', script])

0 commit comments

Comments
 (0)