Skip to content

Commit e680649

Browse files
committed
Minor fixes
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
1 parent 9d1a7d5 commit e680649

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test_runtime.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ set -o nounset
44
set -o pipefail
55

66
RUNTIME="runc"
7-
KEEP=0
7+
KEEP=0 # Track whether we keep the test directory around or clean it up
88

99
usage() {
10-
echo "$0 -r <runtime> -h -k"
10+
echo "$0 -r <runtime> -k -h"
1111
}
1212

1313
error() {
@@ -62,12 +62,12 @@ trap cleanup EXIT
6262
tar -xf rootfs.tar.gz -C ${TESTDIR}
6363
cp runtimetest ${TESTDIR}
6464

65-
TESTCMD="${RUNTIME} start"
6665

6766
pushd $TESTDIR > /dev/null
6867
ocitools generate --args /runtimetest
6968
popd > /dev/null
7069

70+
TESTCMD="${RUNTIME} start"
7171
pushd $TESTDIR > /dev/null
7272
if ! ${TESTCMD}; then
7373
error "Runtime ${RUNTIME} failed validation"

0 commit comments

Comments
 (0)