mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 11:01:18 +00:00
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 <rothberg@redhat.com>
This commit is contained in:
parent
7eb5f39255
commit
1c243a5b12
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user