mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Tests: The run_all script was not correctly using exit code 0 when all tests pass
This commit is contained in:
parent
3a9772ed37
commit
a247a8ffd2
2 changed files with 5 additions and 2 deletions
|
@ -129,4 +129,4 @@ if __name__ == "__main__":
|
||||||
print_category(expected)
|
print_category(expected)
|
||||||
|
|
||||||
# If we encoutered any failures, return non-zero code
|
# If we encoutered any failures, return non-zero code
|
||||||
sys.exit(1 if error_int or unexpected_int else 0)
|
sys.exit(1 if int(error_int) or int(unexpected_int) else 0)
|
||||||
|
|
|
@ -19,6 +19,9 @@ except ImportError:
|
||||||
# python 3
|
# python 3
|
||||||
from queue import Queue, Empty
|
from queue import Queue, Empty
|
||||||
|
|
||||||
|
# Look for taskd in $PATH instead of task/src/
|
||||||
|
os.environ["TASKD_USE_PATH"] = "1"
|
||||||
|
|
||||||
TIMEOUT = .2
|
TIMEOUT = .2
|
||||||
|
|
||||||
|
|
||||||
|
@ -180,7 +183,7 @@ class TestRunner(object):
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
parser = argparse.ArgumentParser(description="Run Timewarrior tests")
|
parser = argparse.ArgumentParser(description="Run Taskwarrior tests")
|
||||||
parser.add_argument('--verbose', '-v', action="store_true",
|
parser.add_argument('--verbose', '-v', action="store_true",
|
||||||
help="Also send TAP output to stdout")
|
help="Also send TAP output to stdout")
|
||||||
parser.add_argument('--logging', '-l', action="count",
|
parser.add_argument('--logging', '-l', action="count",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue