mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Fix performance test for command stop
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
77d4728a09
commit
b87f4a1f5c
1 changed files with 2 additions and 2 deletions
|
@ -227,10 +227,10 @@ function test_performance_start()
|
|||
function test_performance_stop()
|
||||
{
|
||||
# setup
|
||||
${TIMEW_BIN} start "${ONE_HOUR_BEFORE}" TEST >/dev/null
|
||||
${TIMEW_BIN} start "${TWO_HOURS_BEFORE}" TEST >/dev/null
|
||||
# test
|
||||
( ( time -p (
|
||||
${TIMEW_BIN} start "${TWO_HOURS_BEFORE}" TEST >/dev/null
|
||||
${TIMEW_BIN} stop "${ONE_HOUR_BEFORE}" TEST >/dev/null
|
||||
) 2>&1 >/dev/null ) | awk '{a[NR]=$2}; END {for(i=1;i<=3;i++){printf "%s\t",a[i]}}')
|
||||
# cleanup
|
||||
${TIMEW_BIN} delete @1 >/dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue