test-switchroot.sh: skip if no busybox
authorJonathan Lebon <jlebon@redhat.com>
Tue, 27 Jun 2017 21:25:56 +0000 (14:25 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 27 Jun 2017 21:45:34 +0000 (21:45 +0000)
Closes: #968
Approved by: cgwalters

tests/test-switchroot.sh

index fd5a30d05fc8da3d7f4e7e35893be8bced579f31..bc3ec38b5f5891f1447893b066da38d7fa335e64 100755 (executable)
@@ -127,6 +127,8 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
        . $(dirname $0)/libtest.sh
        unshare -m true || \
            skip "this test needs to set up mount namespaces, rerun as root"
+       [ -f /bin/busybox ] || \
+           skip "this test needs busybox"
 
        echo "1..3"
        test_that_prepare_root_sets_sysroot_up_correctly_with_initrd