cmd/snap-confine-tests: reformat test to pass shellcheck #2809

Merged
merged 1 commit into from Feb 8, 2017
Jump to file or symbol
Failed to load files and symbols.
+10 −12
Split
@@ -9,16 +9,14 @@ cat >>"$TMP"/tmpl <<EOF
getpriority
EOF
-for i in TIOCSTI ; do
- cat "$TMP"/tmpl >"$TMP"/snap.name.app
- echo "ioctl - $i" >>"$TMP"/snap.name.app
+cat "$TMP"/tmpl >"$TMP"/snap.name.app
+echo "ioctl - TIOCSTI" >>"$TMP"/snap.name.app
- printf "Test good seccomp arg filtering (ioctl - %s)" "$i"
- # ensure that the command "true" can run with the right filter
- if $L snap.name.app /bin/true ; then
- PASS
- else
- dmesg|tail -n1
- FAIL
- fi
-done
+printf "Test good seccomp arg filtering (ioctl - %s)" "TIOCSTI"
+# ensure that the command "true" can run with the right filter
+if $L snap.name.app /bin/true ; then
+ PASS
+else
+ dmesg|tail -n1
+ FAIL
+fi