diff --git a/tests/e2e_regression/ensure_consistent_config.sh b/tests/e2e_regression/ensure_consistent_config.sh index 957e67aa5..f6782407b 100755 --- a/tests/e2e_regression/ensure_consistent_config.sh +++ b/tests/e2e_regression/ensure_consistent_config.sh @@ -12,8 +12,10 @@ set -euo pipefail # Element of the config files that we'll compare important_attrs='{"cache": .analysis.source.cache.cache_dir, "chain_name": .analysis.source.chain_name, "db": .analysis.storage.endpoint}' -# A converter whose only dependency is stock python and pyyaml, which hopefully is preinstalled +# Enables aliases to work in non-interactive shells. shopt -s expand_aliases + +# A converter whose only dependency is python3, which is likely preinstalled alias yaml2json="python3 -c 'import sys,yaml,json; print(json.dumps(yaml.safe_load(str(sys.stdin.read()))))'" # Compare