Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/rootless.sh: use set -e -u -o pipefail
Currently, set -e ("exit on error") is only set before running tests. The bad consequence is the script may fail to set up test environment but will still run the tests. Use "set -e -u -o pipefail" for the whole script to catch potential issues with test setup and/or the script itself. Note we have to set RUNC_USE_SYSTEMD to an empty value if it is unset, so that the subsequent checks like [ -z "$RUNC_USE_SYSTEMD" ] won't trigger a "unbound variable" errors. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information