diff options
author | Ron Yorston <rmy@pobox.com> | 2018-02-09 09:52:52 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-09 20:35:48 +0200 |
commit | 1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7 (patch) | |
tree | a41b553f1cd5506d94a1c60951cdafbe9f6f6917 /testsuite/sum.tests | |
parent | 9db344a0f4ed5f6f893940b734215d05e48320e9 (diff) | |
download | busybox-w32-1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7.tar.gz busybox-w32-1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7.tar.bz2 busybox-w32-1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7.zip |
testsuite: allow tests to work in paths containing spaces
Tweak some tests so they work when the path to the test directory or
$HOME contains spaces.
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/sum.tests')
-rwxr-xr-x | testsuite/sum.tests | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/sum.tests b/testsuite/sum.tests index b9f4cbfa8..e6379349f 100755 --- a/testsuite/sum.tests +++ b/testsuite/sum.tests | |||
@@ -13,12 +13,12 @@ | |||
13 | # test can create a file "actual" instead of writing to stdout | 13 | # test can create a file "actual" instead of writing to stdout |
14 | 14 | ||
15 | testing "sum -r file doesn't print file's name" \ | 15 | testing "sum -r file doesn't print file's name" \ |
16 | "sum -r $0 | grep -c $0 && echo wrongly_printed_filename || echo yes" \ | 16 | "sum -r '$0' | grep -c '$0' && echo wrongly_printed_filename || echo yes" \ |
17 | "0\nyes\n" "" "" | 17 | "0\nyes\n" "" "" |
18 | testing "sum -r file file does print both names" \ | 18 | testing "sum -r file file does print both names" \ |
19 | "sum -r $0 $0 | grep -c $0 && echo yes || echo wrongly_omitted_filename" \ | 19 | "sum -r '$0' '$0' | grep -c '$0' && echo yes || echo wrongly_omitted_filename" \ |
20 | "2\nyes\n" "" "" | 20 | "2\nyes\n" "" "" |
21 | testing "sum -s file does print file's name" \ | 21 | testing "sum -s file does print file's name" \ |
22 | "sum -s $0 | grep -c $0 && echo yes || echo wrongly_omitted_filename" \ | 22 | "sum -s '$0' | grep -c '$0' && echo yes || echo wrongly_omitted_filename" \ |
23 | "1\nyes\n" "" "" | 23 | "1\nyes\n" "" "" |
24 | exit $FAILCOUNT | 24 | exit $FAILCOUNT |