From 1f27fa98380c134cd0f5f03b4cd3dfe2e83c09b7 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 9 Feb 2018 09:52:52 +0000 Subject: 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 Signed-off-by: Denys Vlasenko --- testsuite/xargs/xargs-works | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuite/xargs/xargs-works') diff --git a/testsuite/xargs/xargs-works b/testsuite/xargs/xargs-works index c95869e..a4bba76 100644 --- a/testsuite/xargs/xargs-works +++ b/testsuite/xargs/xargs-works @@ -1,4 +1,6 @@ +# FEATURE: CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM + [ -n "$d" ] || d=.. -find "$d" -name \*works -type f | xargs md5sum > logfile.gnu -find "$d" -name \*works -type f | busybox xargs md5sum > logfile.bb +find "$d" -name \*works -type f -print0 | xargs -0 md5sum > logfile.gnu +find "$d" -name \*works -type f -print0 | busybox xargs -0 md5sum > logfile.bb diff -u logfile.gnu logfile.bb -- cgit v1.1