[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05
Clint Adams
schizo at debian.org
Sun Nov 15 03:17:36 UTC 2009
The following commit has been merged in the upstream branch:
commit a23087c817c1e52f2b1ebde5dca4d69d8296d379
Author: Akim Demaille <demaille at gostai.com>
Date: Mon Dec 15 16:42:25 2008 +0100
Make failure more readable.
* test/t.chmod_dev, test/t.mknod, test/t.touchinstall: Display the
output before checking it.
diff --git a/test/t.chmod_dev b/test/t.chmod_dev
index 27baa76..d4ea155 100755
--- a/test/t.chmod_dev
+++ b/test/t.chmod_dev
@@ -3,6 +3,6 @@
mkdir $tmp
run_fakeroot -- \
- ${posixshell} -c 'mknod $tmp/hda3 b 3 0 && chmod 644 $tmp/hda3 && ls -ld $tmp/hda3' | grep "^b"
-TEMP=$?
-exit $TEMP
+ ${posixshell} -c 'mknod $tmp/hda3 b 3 0 && chmod 644 $tmp/hda3 && ls -ld $tmp/hda3' > $tmp/out
+cat $tmp/out
+exec grep '^b' $tmp/out
diff --git a/test/t.mknod b/test/t.mknod
index 58587a5..52c0837 100755
--- a/test/t.mknod
+++ b/test/t.mknod
@@ -1,5 +1,9 @@
#!/bin/sh
. ./defs || exit 1
+mkdir $tmp
run_fakeroot -- \
- ${posixshell} -c 'mknod hda3 b 3 1; ls -l hda3' | grep "^b"
+ ${posixshell} -c 'mknod hda3 b 3 1; ls -l hda3' >$tmp/out
+cat $tmp/out
+exec grep "^b" $tmp/out
+
diff --git a/test/t.touchinstall b/test/t.touchinstall
index 4c61599..d959fb1 100755
--- a/test/t.touchinstall
+++ b/test/t.touchinstall
@@ -2,8 +2,7 @@
. ./defs || exit 1
mkdir $tmp
-
run_fakeroot -- \
- ${posixshell} -c "touch $tmp/iamnotuser; ls -al $tmp/iamnotuser" | grep root
-TEMP=$?
-exit $TEMP
+ ${posixshell} -c "touch $tmp/iamnotuser; ls -al $tmp/iamnotuser" >$tmp/out
+cat $tmp/out
+exec grep root $tmp/out
--
fakeroot
More information about the Fakeroot-commits
mailing list