From Fedora Project Wiki
Description
This test aims to verify that the exit status from sandboxed commands is correctly propagated to the host
How to test
- Run a command with "normal" exit status
- # /bin/true
- # echo $?
- Run a command with "normal" exit status in a sandbox
- # virt-sandbox -c $URI /bin/true
- # echo $?
- Run a command with "error" exit status
- # /bin/false
- #echo $?
- Run a command with "error" exit status in a sandbox
- # virt-sandbox -c $URI /bin/false
- # echo $?
- Run a command with a custom exit status
- # /bin/sh "exit 4"
- # echo $?
- Run a command with a custom exit status in a sandbox
- # virt-sandbox -c $URI -- /bin/sh -c "exit 4"
- # echo $?
Expected Results
- Step#1: 0
- Step#1: 0
- Step#1: 1
- Step#1: 1
- Step#1: 4
- Step#1: 4