aboutsummaryrefslogtreecommitdiff
path: root/tests/chown.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
committerRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
commit336c44adca1768ada1e1e2f4d7dbbc33e994e582 (patch)
tree9780ee9602ffbca6b04e472d3ac0d158f92ac49c /tests/chown.test
parenteb830728b12152702c3852d079ad5c8a7f6e709b (diff)
downloadtoybox-336c44adca1768ada1e1e2f4d7dbbc33e994e582.tar.gz
Factor out command name at the start of test name, have runtest.sh print it.
Diffstat (limited to 'tests/chown.test')
-rwxr-xr-xtests/chown.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/chown.test b/tests/chown.test
index 408d5f34..95ad727a 100755
--- a/tests/chown.test
+++ b/tests/chown.test
@@ -29,13 +29,13 @@ OUT="&& echo \$(ls -l testdir/file | awk '{print \$3,\$4}')"
#testing "name" "command" "result" "infile" "stdin"
# Basic smoketest
-testing "chown initial" "chown root:root $F $OUT" "root root\n" "" ""
-testing "chown usr:grp" "chown $USR:$GRP $F $OUT" "$USR $GRP\n" "" ""
-testing "chown root" "chown root $F $OUT" "root $GRP\n" "" ""
+testing "initial" "chown root:root $F $OUT" "root root\n" "" ""
+testing "usr:grp" "chown $USR:$GRP $F $OUT" "$USR $GRP\n" "" ""
+testing "root" "chown root $F $OUT" "root $GRP\n" "" ""
# TODO: can we test "owner:"?
-testing "chown :grp" "chown root:root $F && chown :$GRP $F $OUT" \
+testing ":grp" "chown root:root $F && chown :$GRP $F $OUT" \
"root $GRP\n" "" ""
-testing "chown :" "chown $USR:$GRP $F && chown : $F $OUT" \
+testing ":" "chown $USR:$GRP $F && chown : $F $OUT" \
"$USR $GRP\n" "" ""
rm -rf testdir