From 4a1fdd88150d0f6534c162c49687cfacfae3c18e Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Thu, 18 Jan 2024 09:52:02 +0000 Subject: [PATCH] fixup! fix tests --- .github/workflows/on-commit.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/on-commit.yml b/.github/workflows/on-commit.yml index a72cec1..2bd6012 100644 --- a/.github/workflows/on-commit.yml +++ b/.github/workflows/on-commit.yml @@ -78,9 +78,9 @@ jobs: output_value=$(eval $output) expected=$(echo "echo \$EXPECTED_$o") expected_value=$(eval $expected) - if [ $expected_value != $output_value ];then + if [[ "$expected_value" != "$output_value" ]];then failure="true" - echo "ERROR: expected_value ($expected_value) != output_value ($output_value)" + echo "ERROR: $o - expected_value ($expected_value) != output_value ($output_value)" fi done if [ "$failure" = "true" ]; then @@ -139,9 +139,9 @@ jobs: output_value=$(eval $output) expected=$(echo "echo \$EXPECTED_$o") expected_value=$(eval $expected) - if [ $expected_value != $output_value ];then + if [[ "$expected_value" != "$output_value" ]];then failure="true" - echo "ERROR: expected_value ($expected_value) != output_value ($output_value)" + echo "ERROR: $o - expected_value ($expected_value) != output_value ($output_value)" fi done if [ "$failure" = "true" ]; then