aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-11-17 11:57:11 -0600
committerRob Landley <rob@landley.net>2018-11-17 11:57:11 -0600
commit7f75b87aed07691405efeff96efa6d917e2008da (patch)
tree42edfb0ca2187d51256d9952b1a4ae78085483b9
parent2ed6a1d8d6ff2e7ce9a7b48d616f4672758052f7 (diff)
downloadtoybox-7f75b87aed07691405efeff96efa6d917e2008da.tar.gz
Cosmetic leanup (hide stderr prompts).
-rwxr-xr-xtests/mv.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/mv.test b/tests/mv.test
index 036fd48e..f1f4a4f9 100755
--- a/tests/mv.test
+++ b/tests/mv.test
@@ -120,38 +120,38 @@ rm -f file*
touch file1 file2
chmod 400 file1 file2
testing "mv over unwritable file: no stdin" \
- "mv file2 file1 && [ -e file1 -a ! -e file2 ] && echo yes" \
+ "mv file2 file1 2>/dev/null && [ -e file1 -a ! -e file2 ] && echo yes" \
"yes\n" "" ""
rm -f file*
touch file1 file2
chmod 400 file1 file2
testing "mv over unwritable file: answered YES" \
- "mv file2 file1 && [ -e file1 -a ! -e file2 ] && echo yes" \
+ "mv file2 file1 2>/dev/null && [ -e file1 -a ! -e file2 ] && echo yes" \
"yes\n" "" "y\n"
rm -f file*
touch file1 file2
chmod 400 file1 file2
testing "mv over unwritable file: answered NO" \
- "mv file2 file1 && [ -e file1 -a -e file2 ] && echo yes" \
+ "mv file2 file1 2>/dev/null && [ -e file1 -a -e file2 ] && echo yes" \
"yes\n" "" "n\n"
rm -f file*
touch file1 file2
testing "interactive: no stdin" \
- "mv -i file2 file1 && [ -e file1 -a ! -e file2 ] && echo yes" \
+ "mv -i file2 file1 2>/dev/null && [ -e file1 -a ! -e file2 ] && echo yes" \
"yes\n" "" ""
rm -f file*
touch file1 file2
testing "interactive: answered YES" \
- "mv -i file2 file1 && [ -e file1 -a ! -e file2 ] && echo yes" \
+ "mv -i file2 file1 2>/dev/null && [ -e file1 -a ! -e file2 ] && echo yes" \
"yes\n" "" "y\n"
rm -f file*
touch file1 file2
testing "interactive: answered NO" \
- "mv -i file2 file1 && [ -e file1 -a -e file2 ] && echo yes" \
+ "mv -i file2 file1 2>/dev/null && [ -e file1 -a -e file2 ] && echo yes" \
"yes\n" "" "n\n"
rm -f file*