]> git.proxmox.com Git - pve-container.git/commitdiff
skip userns tests in sbuild environment
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 25 May 2023 12:04:57 +0000 (14:04 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 25 May 2023 12:05:24 +0000 (14:05 +0200)
Since they cannot run in a chroot. They'd need a
`pivot_root` environment instead.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/test/Makefile

index 82e8967fbf1481886cde5535738cffcb1d5ce0a8..91ae6ff4d4e5a3803360bef4271bad0b40848a91 100644 (file)
@@ -5,13 +5,21 @@ all: test
 test: test_setup test_snapshot test_bindmount test_idmap
 
 test_setup: run_setup_tests.pl
-       $(RUN_USERNS) ./run_setup_tests.pl
+       if test -e /run/lock/sbuild; then \
+               echo skipping userns tests in sbuild environment ; \
+       else \
+               $(RUN_USERNS) ./run_setup_tests.pl ; \
+       fi
 
 test_snapshot: run_snapshot_tests.pl
        ./run_snapshot_tests.pl
 
 test_bindmount: bindmount_test.pl
-       $(RUN_USERNS) ./bindmount_test.pl
+       if test -e /run/lock/sbuild; then \
+               echo skipping userns tests in sbuild environment ; \
+       else \
+               $(RUN_USERNS) ./bindmount_test.pl ; \
+       fi
 
 test_idmap: run_idmap_tests.pl
        ./run_idmap_tests.pl