mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement
- Output error, header, footnote and debug messages on standard error.
This commit is contained in:
parent
b093d23f1f
commit
b45a305df2
28 changed files with 101 additions and 82 deletions
|
@ -40,16 +40,16 @@ if (open my $fh, '>', 'bug.rc')
|
|||
}
|
||||
|
||||
# Bug 899: task log does not behave correctly when logging into a project
|
||||
my $output = qx{../src/task rc:bug.rc add one pro:A};
|
||||
my $output = qx{../src/task rc:bug.rc add one pro:A 2>&1 >/dev/null};
|
||||
like ($output, qr/ 0% complete \(1 of 1 /, '1 of 1 tasks remaining - 0%');
|
||||
|
||||
$output = qx{../src/task rc:bug.rc add two pro:A};
|
||||
$output = qx{../src/task rc:bug.rc add two pro:A 2>&1 >/dev/null};
|
||||
like ($output, qr/ 0% complete \(2 of 2 /, '2 of 2 tasks remaining - 0%');
|
||||
|
||||
$output = qx{../src/task rc:bug.rc 1 done};
|
||||
$output = qx{../src/task rc:bug.rc 1 done 2>&1 >/dev/null};
|
||||
like ($output, qr/ 50% complete \(1 of 2 /, '1 of 2 tasks remaining - 50%');
|
||||
|
||||
$output = qx{../src/task rc:bug.rc log three pro:A};
|
||||
$output = qx{../src/task rc:bug.rc log three pro:A 2>&1 >/dev/null};
|
||||
like ($output, qr/ 66% complete \(1 of 3 /, '1 of 3 tasks remaining - 66%');
|
||||
|
||||
# Cleanup.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue