mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Update bash_tap.sh
This commit is contained in:
parent
cd30295922
commit
9e8c4ba813
1 changed files with 7 additions and 1 deletions
|
@ -38,8 +38,11 @@ function bashtap_run_testcase {
|
||||||
bashtap_output+=$'\n'
|
bashtap_output+=$'\n'
|
||||||
local cmd_output
|
local cmd_output
|
||||||
local cmd_ret
|
local cmd_ret
|
||||||
cmd_output=$(eval "$bashtap_line" 2>&1 | sed 's/^/# >>> /')
|
|
||||||
|
eval "$bashtap_line" &> bashtap_out_tmp
|
||||||
cmd_ret=$?
|
cmd_ret=$?
|
||||||
|
cmd_output="$(sed 's/^/# >>> /' < bashtap_out_tmp)"
|
||||||
|
|
||||||
if [ ! -z "$cmd_output" ]; then
|
if [ ! -z "$cmd_output" ]; then
|
||||||
bashtap_output+="$cmd_output"
|
bashtap_output+="$cmd_output"
|
||||||
bashtap_output+=$'\n'
|
bashtap_output+=$'\n'
|
||||||
|
@ -56,6 +59,9 @@ function bashtap_clean_tmpdir {
|
||||||
cd "$bashtap_org_pwd"
|
cd "$bashtap_org_pwd"
|
||||||
rm -rf "$bashtap_tmpdir"
|
rm -rf "$bashtap_tmpdir"
|
||||||
fi
|
fi
|
||||||
|
if [ -f bashtap_out_tmp ]; then
|
||||||
|
rm bashtap_out_tmp
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function bashtap_get_absolute_path {
|
function bashtap_get_absolute_path {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue