Skip to content

Commit f59724b

Browse files
authored
fix tests (#517)
Signed-off-by: Appu Goundan <[email protected]>
1 parent 56c7201 commit f59724b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/structure_test_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ fi
263263

264264
res=$(./out/container-structure-test test --image "$test_image" --platform="linux/riscv64" --config "${test_config_dir}/ubuntu_22_04_test.yaml" 2>&1)
265265
code=$?
266-
if ! [[ ("$res" =~ image\ with\ reference.+was\ found\ but\ does\ not\ match\ the\ specified\ platform:\ wanted\ linux\/\riscv64,\ actual:\ linux\/$go_architecture && "$code" == "1") ]];
266+
if ! [[ "$res" =~ image\ with\ reference.+was\ found\ but\ its\ platform\ \(linux\/${go_architecture}\)\ does\ not\ match\ the\ specified\ platform\ \(linux\/riscv64\) && "$code" == "1" ]];
267267
then
268268
echo "FAIL: platform failing test case"
269269
echo "$res"

0 commit comments

Comments
 (0)