Skip to content

Commit

Permalink
test/suites: Add test for restart during exec
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Sep 3, 2024
1 parent f712513 commit be41b44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/suites/exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,9 @@ test_exec_exit_code() {
lxc exec x1 -- invalid-command || exitCode=$?
[ "${exitCode:-0}" -eq 127 ]

(sleep 1 && lxc stop x1) &
lxc exec x1 -- sleep 10 || exitCode=$?
[ "${exitCode:-0}" -eq 129 ]

lxc delete --force x1
}

0 comments on commit be41b44

Please sign in to comment.