[tests] switch back to echo for test command

pull/976/head
Timothy Stack 2 years ago
parent c17f40f7ab
commit 0c54d19fc0

@ -88,9 +88,9 @@ run_test() {
run_cap_test() {
LAST_CAP_TEST=("test: $@")
local full_cmd=$(printf "%s" "${LAST_CAP_TEST[@]}" | sed -e "s;${test_dir};{test_dir};g")
export test_hash=$(printf "%s" "${full_cmd}" | shasum | cut -f 1 -d ' ')
printf "%s" "${full_cmd}" > ${test_file_base}_${test_hash}.cmd
local full_cmd=$(echo "${LAST_CAP_TEST[@]}" | sed -e "s;${test_dir};{test_dir};g")
export test_hash=$(echo "${full_cmd}" | shasum | cut -f 1 -d ' ')
echo "${full_cmd}" > ${test_file_base}_${test_hash}.cmd
"$@" > ${test_file_base}_${test_hash}.out 2> ${test_file_base}_${test_hash}.err
sed -ibak \

Loading…
Cancel
Save