]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: Skip lsns/ioctl_ns test if unshare fails
authorChris Hofstaedtler <zeha@debian.org>
Fri, 20 Aug 2021 10:30:50 +0000 (10:30 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Aug 2021 13:18:34 +0000 (15:18 +0200)
commit597ccb7bf564f65bb059bfe420224cab0fba46ac
tree72477005055838883272cb18c563e3bec895aebf
parent059811d096f0051d911f884d47ebc6147630990a
tests: Skip lsns/ioctl_ns test if unshare fails

Some parts of the Debian build infrastructure uses unshare to run the
package build, and that appears to cause a "nested" unshare in the
lsns/ioctl_ns test to fail. Unfortunately the tests then hang at this
point.

Try running unshare before the actual test, and skip the test if unshare
already fails.

[kzak@redhat.com: - add --fork to the test
                  - don't write to stdout/err]

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/lsns/ioctl_ns