Skip to content

Commit

Permalink
Fix a regression test
Browse files Browse the repository at this point in the history
"sort" uses different sorting order depending on locale settings.
  • Loading branch information
ckhroulev committed Dec 18, 2020
1 parent 96e34b0 commit bbf1ee3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/regression/sorted_parameters.sh
Expand Up @@ -17,6 +17,9 @@ cat ${pism_config_cdl} | \
sed "s/^ *pism_config://" | \
sed "s/ =.*//" > ${temp_dir}/raw_config.txt

# Avoid locale-dependent "sort" results:
export LC_COLLATE=C

cat ${temp_dir}/raw_config.txt | sort > ${temp_dir}/sorted_config.txt

diff -u ${temp_dir}/raw_config.txt ${temp_dir}/sorted_config.txt

0 comments on commit bbf1ee3

Please sign in to comment.