mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00

- 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.
18 lines
513 B
Bash
Executable file
18 lines
513 B
Bash
Executable file
#!/usr/bin/env bash
|
|
. bash_tap_tw.sh
|
|
|
|
# TW-1688 task fails to import
|
|
# The problem is when a completed task, with a dependency is exported, then
|
|
# imported after the data is removed. On import, the circular dependency
|
|
# check didn't notice that a UUID failed to exist, and generated a JSON error.
|
|
#
|
|
# Although an unusual circumstance, people do delete data from their
|
|
# completed.data file.
|
|
|
|
task add one
|
|
task log two depends:1
|
|
|
|
task /two/ export > JSON
|
|
|
|
rm pending.data completed.data
|
|
task import JSON
|