mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Add regression test for TW #2429
This commit is contained in:
parent
fb6c42f375
commit
506cb4fc8a
1 changed files with 13 additions and 0 deletions
13
test/tw-2429.t
Normal file
13
test/tw-2429.t
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
. bash_tap_tw.sh
|
||||
|
||||
# Setup the tasks, urgent ones and unimportant
|
||||
for i in `seq 1 5`; do task add unimportant task $i; done
|
||||
for i in `seq 1 5`; do task add important task $i due:today+${i}d; done
|
||||
|
||||
# Complete all the tasks. Since the highest priority task was completed,
|
||||
# nagging should not happen.
|
||||
NAGGING_HAPPENS=`task rc.bulk:0 1-10 done 2>&1 | grep 'more urgent'` || :
|
||||
|
||||
# Nagging should not have happened
|
||||
[[ -z $NAGGING_HAPPENS ]]
|
Loading…
Add table
Add a link
Reference in a new issue