summaryrefslogtreecommitdiffhomepage
path: root/testsuite/du/du-m-works
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/du/du-m-works')
-rw-r--r--testsuite/du/du-m-works5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/du/du-m-works b/testsuite/du/du-m-works
index e3e2d3a56..bc9707350 100644
--- a/testsuite/du/du-m-works
+++ b/testsuite/du/du-m-works
@@ -1,3 +1,4 @@
-du -m .. > logfile.gnu
-busybox du -m .. > logfile.bb
+[ -n "$d" ] || d=..
+du -m "$d" > logfile.gnu
+busybox du -m "$d" > logfile.bb
cmp logfile.gnu logfile.bb