Merge pull request #14 from chriskuehl/reduce-exit-status-tests

Reduce tests for exit status
This commit is contained in:
Kent Wills 2015-09-10 15:23:24 -07:00
commit 5e2a3ffed3

View file

@ -2,7 +2,7 @@
dumb_init="$1" dumb_init="$1"
# dumb-init should exit with the same exit status as the process it launches. # dumb-init should exit with the same exit status as the process it launches.
for i in $(seq 0 255); do for i in 0 1 2 32 64 127 254 255; do
status=$($dumb_init sh -c "exit $i"; echo $?) status=$($dumb_init sh -c "exit $i"; echo $?)
if [ "$status" -ne "$i" ]; then if [ "$status" -ne "$i" ]; then