aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-02-13 07:56:24 -0600
committerRob Landley <rob@landley.net>2021-02-13 07:56:24 -0600
commit1bd9528453c2f0cecf60e7975ab5b3c1eada8e56 (patch)
tree075bcbd1cccad425808d835486e7e2dbcbe3832b /tests
parent6d615c73b321a2f3a337d5d9a949f159d436375b (diff)
downloadtoybox-1bd9528453c2f0cecf60e7975ab5b3c1eada8e56.tar.gz
Minor cleanup.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp.test9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/cp.test b/tests/cp.test
index 040b4f15..293f0348 100755
--- a/tests/cp.test
+++ b/tests/cp.test
@@ -83,8 +83,7 @@ rm one two random
rm -rf dir
mkdir -p one/two/three/four
-touch one/two/three/five
-touch one/{six,seven,eight}
+touch one/two/three/five one/{six,seven,eight}
testing "-r /abspath dest" \
"cp -r \"$(readlink -f one)\" dir && diff -r one dir && echo yes" \
"yes\n" "" ""
@@ -120,12 +119,10 @@ testing "-T file" "cp -T b file && cat file" "b\n" "" ""
testing "-T dir" "cp -T b dir 2>/dev/null || echo expected" "expected\n" "" ""
rm b file
-mkdir -p b/c/d/
-mkdir a/
+mkdir -p b/c/d/ a/
echo a > b/c/d/file
testing "--parents b/c/d/file a/" "cp --parents b/c/d/file a/ && cat a/b/c/d/file" "a\n" "" ""
-rm -rf a/
-rm -rf b/
+rm -rf a/ b/
echo a > file
testing "-P file" "cp -P file fdst && stat -c %F fdst" "regular file\n" "" ""