diff --git a/cicd_tests/test_foo.sh b/cicd_tests/test_foo.sh index e05aa22b6f360d5f45db0fa902656c7e33184033..4a5fa599dcb71008b7c9a3a321a3b95fa02a9d3a 100755 --- a/cicd_tests/test_foo.sh +++ b/cicd_tests/test_foo.sh @@ -60,8 +60,8 @@ protect() echo Protecting file "$file" with config "$config" "$config" ./"$file" ./"$file"".""$config" varient_array_name="$(echo "$file" | sed -e 's/\./_/g')""_varients" - declare -n varient_array="$varient_array_name" - varient_array+=("$file"".""$config") + varient_file="$file"".""$config" + eval $varient_array_name+=\(\$varient_file\) done done diff --git a/tools/selective_cfi/tests/manual_tests/test_foo.sh b/tools/selective_cfi/tests/manual_tests/test_foo.sh index e0ae9c8dd873dfda2021733bd9bf2cb80a1bd2fa..222621d06296b9e112a249101e8e5a0d223ff1be 100755 --- a/tools/selective_cfi/tests/manual_tests/test_foo.sh +++ b/tools/selective_cfi/tests/manual_tests/test_foo.sh @@ -58,8 +58,8 @@ protect() echo Protecting file "$file" with config "$config" | tee -a foo_protection_log.txt "$config" ./"$file" ./"$file"".""$config" | tee -a foo_protection_log.txt varient_array_name="$(echo "$file" | sed -e 's/\./_/g')""_varients" - declare -n varient_array="$varient_array_name" - varient_array+=("$file"".""$config") + varient_file="$file"".""$config" + eval $varient_array_name+=\(\$varient_file\) done done