Skip lsns/ioctl_ns test if unshare fails
PATCH 1/1 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.
--- tests/ts/lsns/ioctl_ns | 2 ++ 1 file changed, 2 insertions(+)
tests/ts/lsns/ioctl_ns +2 -0
@@ -34,6 +34,8 @@ ts_check_prog "mkfifo" ts_check_prog "touch" ts_check_prog "uniq" +$TS_CMD_UNSHARE --user --pid --mount-proc true || ts_skip "Namespace support failure" + ts_cd "$TS_OUTDIR" # The parent process receives namespaces ids via FIFO_DATA from bash
Signature · 1 line
2.33.0
Sorry, I missed to add my own signoff.
Quoted 8 lines · Chris Hofstaedtler
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.
Quoted 20 lines
--- tests/ts/lsns/ioctl_ns | 2 ++ 1 file changed, 2 insertions(+)tests/ts/lsns/ioctl_ns +2
-0@@ -34,6 +34,8 @@ ts_check_prog "mkfifo" ts_check_prog "touch" ts_check_prog "uniq" +$TS_CMD_UNSHARE --user --pid --mount-proc true || ts_skip "Namespace support failure" + ts_cd "$TS_OUTDIR" # The parent process receives namespaces ids via FIFO_DATA from bashSignature · 1 line
2.33.0
Karel Zak
maintainerQuoted 1 line · Chris Hofstaedtler
+$TS_CMD_UNSHARE --user --pid --mount-proc true ||
ts_skip"Namespace support failure"
The --pid requires --fork, fixed and committed:
https://github.com/karelzak/util-linux/commit/597ccb7bf564f65bb059bfe420224cab0fba46ac
Thanks
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com