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 <pedro.ribeiro@canonical.com>
  • Loading branch information
hamistao committed Aug 6, 2024
1 parent 67b3516 commit dad5939
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 restart x1) &
lxc exec x1 -- sleep 10 || exitCode=$?
[ "${exitCode:-0}" -eq 129 ]

lxc delete --force x1
}

0 comments on commit dad5939

Please sign in to comment.