integration: quote shell value to prevent word splitting

Signed-off-by: lifubang <lifubang@acmcoder.com>
This commit is contained in:
lifubang
2026-01-06 10:02:03 +00:00
parent ed01e20ee3
commit 9632f1e198
+1 -1
View File
@@ -31,7 +31,7 @@ function teardown() {
}
@test "runc run with new privileges" {
if [ $(awk '$1 == "NoNewPrivs:" { print $2; exit }' /proc/self/status) -ne 0 ]; then
if [ "$(awk '$1 == "NoNewPrivs:" { print $2; exit }' /proc/self/status)" -ne 0 ]; then
skip "requires unset NoNewPrivs"
fi
update_config '.process.noNewPrivileges = false'