Allow unset readonly-paths-from-var variable
This commit is contained in:
parent
ba42171b16
commit
ac316857f4
2 changed files with 6 additions and 1 deletions
|
|
@ -510,7 +510,7 @@
|
||||||
P="$(realpath "$DIR")"
|
P="$(realpath "$DIR")"
|
||||||
RUNTIME_ARGS+=(--ro-bind "$P" "$P")
|
RUNTIME_ARGS+=(--ro-bind "$P" "$P")
|
||||||
fi
|
fi
|
||||||
done <<< "${"$"}${var}"
|
done <<< "''${${var}-}"
|
||||||
'')
|
'')
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,11 @@ in {
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
"combinators/readonly-from-path-var doesn't require the var to be set" =
|
||||||
|
jail "test" (sh "true") (c: [
|
||||||
|
(c.readonly-paths-from-var "THIS_VAR_IS_NOT_SET" ":")
|
||||||
|
]);
|
||||||
|
|
||||||
"combinators/set-argv" = assertStdout
|
"combinators/set-argv" = assertStdout
|
||||||
(jail "test" (sh "printf '1=%s,2=%s,3=%s' \"$@\"") (c: [
|
(jail "test" (sh "printf '1=%s,2=%s,3=%s' \"$@\"") (c: [
|
||||||
(c.set-argv [ "foo" "bar baz" "foo>'bar'" ])
|
(c.set-argv [ "foo" "bar baz" "foo>'bar'" ])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue