diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-04-05 13:27:51 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-04-05 13:27:51 +0300 |
commit | 6cc1680082a34037b889d824b80a006081b97363 (patch) | |
tree | af4bf7637cf8c6a7c6924b8214ab7e25129b8e5e /tests | |
parent | 8106e7e89c3c673f8eb7d2ed5027e2ee9750e3b5 (diff) | |
download | rpm-6cc1680082a34037b889d824b80a006081b97363.tar.gz rpm-6cc1680082a34037b889d824b80a006081b97363.tar.bz2 rpm-6cc1680082a34037b889d824b80a006081b97363.zip |
Fix test-suite root population wrt "optional" directories
- /proc, /sys and especially selinux directories are mostly Linux
creatures and even those vary between versions. Use if to avoid
the error code "leaking" in case the last directory is not present.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index ff7e49843..dca36b295 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -98,7 +98,7 @@ testing$(bindir)/rpmbuild: ../rpmbuild for node in stdin stderr stdout null; do ln -s /dev/$${node} testing/dev/$${node}; done for cf in hosts resolv.conf passwd shadow group gshadow mtab fstab; do [ -f /etc/$${cf} ] && ln -s /etc/$${cf} testing/etc/$${cf}; done for prog in gzip cat patch tar sh ln chmod rm mkdir uname grep sed find file mktemp cut sort diff; do p=`which $${prog}`; ln -s $${p} testing/$${p}; done - for d in /proc /sys /selinux /etc/selinux; do [ -d $${d} ] && ln -s $${d} testing/$${d}; done + for d in /proc /sys /selinux /etc/selinux; do if [ -d $${d} ]; then ln -s $${d} testing/$${d}; fi; done (cd testing/magic && file -C) check_DATA = atconfig atlocal $(TESTSUITE) |