Commit 5898e0e
committed
fix(test): eliminate false positives from is-microvm-dead check
Ensure that `ps(1)` does not truncate the command, which might result in
the grep failing (if the jailer_id gets truncated), using the -ww
option. While we're at it, also use -o cmd so that ps only prints the
command names and nothing else (as we're not using anything else from
this output).
This causes false-positives instead of false-negatives funnily enough,
because we're using check_output, meaning if the grep doesnt find
anything we fail the command (in the "everything works" scenario,
firecracker is dead but grep still matches the "ps | grep" process
itself).
Signed-off-by: Patrick Roy <[email protected]>1 parent ee0d5c1 commit 5898e0e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
0 commit comments