diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-04 14:40:58 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-04 14:40:58 +0000 |
commit | 5db861a9eb93c4562798654f53022088784f35eb (patch) | |
tree | 60572a6fe1df5b7079482ec4490fca559c58fbd2 /testsuite | |
parent | 27842288b393e532e5693f2a2bab94fee73a326d (diff) |
fix some testsuite false positives
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/mdev.tests | 14 | ||||
-rw-r--r-- | testsuite/tar/tar_with_link_with_size | 2 | ||||
-rw-r--r-- | testsuite/tar/tar_with_prefix_fields | 2 |
3 files changed, 12 insertions, 6 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests index 5c65ffc46..dad5bddb8 100755 --- a/testsuite/mdev.tests +++ b/testsuite/mdev.tests @@ -25,8 +25,10 @@ mkdir mdev.testdir/dev mkdir -p mdev.testdir/sys/block/sda echo "8:0" >mdev.testdir/sys/block/sda/dev +# env - PATH=$PATH: on some systems chroot binary won't otherwise be found + testing "mdev add /block/sda" \ - "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; + "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; ls -ln mdev.testdir/dev | $FILTER_LS" \ "\ brw-rw---- 1 0 0 8,0 sda @@ -38,7 +40,7 @@ rm -rf mdev.testdir/dev/* echo ".* 1:1 666" >mdev.testdir/etc/mdev.conf echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf testing "mdev stops on first rule" \ - "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; + "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; ls -ln mdev.testdir/dev | $FILTER_LS" \ "\ brw-rw-rw- 1 1 1 8,0 sda @@ -49,7 +51,7 @@ brw-rw-rw- 1 1 1 8,0 sda rm -rf mdev.testdir/dev/* echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf testing "mdev move/symlink rule '>bar/baz'" \ - "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; + "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; ls -lnR mdev.testdir/dev | $FILTER_LS2" \ "\ mdev.testdir/dev: @@ -65,7 +67,7 @@ br--r--r-- 1 0 0 scsiA rm -rf mdev.testdir/dev/* echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf testing "mdev move/symlink rule '>bar/'" \ - "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; + "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; ls -lnR mdev.testdir/dev | $FILTER_LS2" \ "\ mdev.testdir/dev: @@ -82,7 +84,7 @@ rm -rf mdev.testdir/dev/* # here we complicate things by having non-matching group 1 and using %0 echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf testing "mdev regexp substring match + replace" \ - "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; + "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; ls -lnR mdev.testdir/dev | $FILTER_LS2" \ "\ mdev.testdir/dev: @@ -99,7 +101,7 @@ rm -rf mdev.testdir/dev/* # here we complicate things by having non-matching group 1 and using %0 echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf testing "mdev command" \ - "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; + "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; ls -lnR mdev.testdir/dev | $FILTER_LS" \ "\ @echo TEST diff --git a/testsuite/tar/tar_with_link_with_size b/testsuite/tar/tar_with_link_with_size index 40454f21c..5b61cc70b 100644 --- a/testsuite/tar/tar_with_link_with_size +++ b/testsuite/tar/tar_with_link_with_size @@ -23,5 +23,7 @@ res1="\ lrwxrwxrwx user/group 0 2008-07-19 15:02:37 firmware-372/sources/native/bin/chroot-setup.sh -> qemu-setup.sh -rwxr-xr-x user/group 512 2008-07-19 15:02:37 firmware-372/sources/native/bin/qemu-setup.sh" +export TZ=UTC-2 + t=`tar1_bz2 | bunzip2 | busybox tar tvf -` test x"$res1" = x"$t" diff --git a/testsuite/tar/tar_with_prefix_fields b/testsuite/tar/tar_with_prefix_fields index fbc35ab15..1c7124d52 100644 --- a/testsuite/tar/tar_with_prefix_fields +++ b/testsuite/tar/tar_with_prefix_fields @@ -244,6 +244,8 @@ tar2_bz2() # also lacking proper terminating zeroed blocks. But exitcode is 0. # This is intended. +export TZ=UTC-1 + # Case 1: long name, with path in prefix field res1='-rw-r--r-- fm3/users 9869 2007-03-12 10:44:54 VirtualBox-1.5.6_OSE/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/public/ipcITransactionService.idl' t=`tar1_bz2 | bunzip2 | busybox tar tvf -` |