From 1bd9528453c2f0cecf60e7975ab5b3c1eada8e56 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 13 Feb 2021 07:56:24 -0600 Subject: Minor cleanup. --- tests/cp.test | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests') 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" "" "" -- cgit v1.2.3