mirror of
https://github.com/opencontainers/runc.git
synced 2026-11-06 05:17:05 +00:00
tests/int: fix "timens offsets with no timens" test
The test uses ".linux.namespace" (rather than ".linux.namespaces") in
its jq expression, which results in a jq error. As update_config does
not check jq exit code, config.json ends up being empty, and so the
subsequent runc run fails because of that, not because of what the test
is supposed to check.
Fix the jq expression, so that runc now fails with:
time namespace offsets specified, but time namespace isn't enabled in the config
Fixes: aa5f4c11 ("tests: add several timens tests")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
1 parent
c3f58816e7
commit
20d4bff0e2
1 file changed
+1
-1
@@ -14,7 +14,7 @@ function teardown() {
|
||||
requires timens
|
||||
|
||||
update_config '.process.args = ["cat", "/proc/self/timens_offsets"]'
|
||||
update_config '.linux.namespaces = .linux.namespace | map(select(.type != "time"))'
|
||||
update_config '.linux.namespaces |= map(select(.type != "time"))'
|
||||
update_config '.linux.timeOffsets = {
|
||||
"monotonic": { "secs": 7881, "nanosecs": 2718281 },
|
||||
"boottime": { "secs": 1337, "nanosecs": 3141519 }
|
||||
|
||||
Reference in new issue
Block a user