mirror of
https://github.com/tstack/lnav.git
synced 2024-08-17 00:40:30 +03:00
[tests] switch back to echo for test command
This commit is contained in:
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…
Reference in New Issue
Block a user