mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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.
This commit is contained in:
parent
2bdaa37e32
commit
791bd1b82a
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue