Skip to content

Commit 5c58ad5

Browse files
committed
test: validate default_env value instead of just checking existence
Signed-off-by: bells17 <bells171@gmail.com>
1 parent 5dfca35 commit 5c58ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/libcontainer/src/hooks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ mod test {
348348
.args(vec![
349349
String::from("sh"),
350350
String::from("-c"),
351-
String::from("printenv TEST_ENV > /dev/null"),
351+
String::from("test \"$TEST_ENV\" = 'default_value'"),
352352
])
353353
.build()?;
354354
let hooks = Some(vec![hook]);

0 commit comments

Comments
 (0)