From 1c243a5b12cea69600d81f5d887def7da7738567 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 30 Sep 2019 15:31:14 +0200 Subject: [PATCH] systemtest/010-inspect.bats: require only PATH The "inspect: env" test started failing since the environment in the `fedora:latest` image has changed. Hence, only check for `PATH` in the image's environment which is a defacto standard. Signed-off-by: Valentin Rothberg --- systemtest/010-inspect.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemtest/010-inspect.bats b/systemtest/010-inspect.bats index e861cec2..ee188e13 100644 --- a/systemtest/010-inspect.bats +++ b/systemtest/010-inspect.bats @@ -72,7 +72,7 @@ END_EXPECT # Simple check on 'inspect' output with environment variables. # 1) Get remote image values of environment variables (the value of 'Env') # 2) Confirm substring in check_array and the value of 'Env' match. - check_array=(DISTTAG=f[0-9]+container FGC=f[0-9]+ FBR=f[0-9]+) + check_array=(PATH=.* ) remote=$(echo "$inspect_remote" | jq '.Env[]') for substr in ${check_array[@]}; do expect_output --from="$remote" --substring "$substr"