From 791bd1b82a268156b1e65e7fc3a69f89804ce308 Mon Sep 17 00:00:00 2001 From: Wilhelm Schuermann Date: Fri, 11 Sep 2015 17:22:00 +0200 Subject: [PATCH] Test: Simplify tw-1688.t - bash_tap tests are executed in a temporary folder. Any data written to the current directory will therefore be cleaned up without the need for manually dealing with cleanup. - $TASKDATA is set to this directory as well, so all Taskwarrior data files are directly accessible. --- test/tw-1688.t | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/tw-1688.t b/test/tw-1688.t index 62731770a..9eab84230 100755 --- a/test/tw-1688.t +++ b/test/tw-1688.t @@ -12,9 +12,7 @@ task add one task log two depends:1 -JSON=$(mktemp /tmp/tw-1688.XXXXXXXXXX) -task /two/ export > $JSON - -rm $TASKDATA/pending.data $TASKDATA/completed.data -task import $JSON +task /two/ export > JSON +rm pending.data completed.data +task import JSON