diff options
author | Steve MacLean, Qualcomm Datacenter Technologies, Inc <sdmaclea@qti.qualcomm.com> | 2017-04-04 15:02:18 +0000 |
---|---|---|
committer | Steve MacLean, Qualcomm Datacenter Technologies, Inc <sdmaclea@qti.qualcomm.com> | 2017-04-04 15:02:18 +0000 |
commit | c9401137f5e5a5b4ad518afb07a29e22b7781ff3 (patch) | |
tree | f6c59dfe7f1bfc8de62b3b6c66356ede76fbc614 /tests/runtest.sh | |
parent | 8525460327cc2967cf30364588ce981b81ce2727 (diff) | |
download | coreclr-c9401137f5e5a5b4ad518afb07a29e22b7781ff3.tar.gz coreclr-c9401137f5e5a5b4ad518afb07a29e22b7781ff3.tar.bz2 coreclr-c9401137f5e5a5b4ad518afb07a29e22b7781ff3.zip |
Do not use declare -A
This broke runtest.sh on OSX 10.12
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-x | tests/runtest.sh | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh index 458f451431..402b9249b9 100755 --- a/tests/runtest.sh +++ b/tests/runtest.sh @@ -371,13 +371,19 @@ function create_core_overlay { copy_test_native_bin_to_test_root } -function precompile_overlay_assemblies { - declare -A skipCrossGenFiles +declare -a skipCrossGenFiles - while read line - do - skipCrossGenFiles[$line]=1 - done < "$(dirname "$0")/skipCrossGenFiles.$ARCH.txt" +function is_skip_crossgen_test { + for skip in "${skipCrossGenFiles[@]}"; do + if [ "$1" == "$skip" ]; then + return 0 + fi + done + return 1 +} + +function precompile_overlay_assemblies { + skipCrossGenFiles=($(read_array "$(dirname "$0")/skipCrossGenFiles.$ARCH.txt")) if [ $doCrossgen == 1 ]; then local overlayDir=$CORE_ROOT @@ -393,7 +399,7 @@ function precompile_overlay_assemblies { echo Unable to generate dasm for $filename fi else - if [[ ${skipCrossGenFiles[$(basename $filename)]:-0} == 0 ]]; then + if is_skip_crossgen_test "$(basename $filename)"; then continue fi echo Precompiling $filename |