Skip to content

Commit

Permalink
Merge pull request ESCOMP#183 from johnpaulalex/doc_test4
Browse files Browse the repository at this point in the history
test_sys_checkout: less confusing handling of return values from checkout_externals
  • Loading branch information
jedwards4b committed Jan 26, 2023
2 parents c045335 + e01cfe2 commit 8872c0d
Show file tree
Hide file tree
Showing 2 changed files with 194 additions and 359 deletions.
6 changes: 4 additions & 2 deletions manic/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ def main(args):
Returns a tuple (overall_status, tree_status). overall_status is 0
on success, non-zero on failure. tree_status gives the full status
*before* executing the checkout command - i.e., the status that it
used to determine if it's safe to proceed with the checkout.
if no checkout is happening. If checkout is happening, tree_status
is None.
"""
if args.do_logging:
logging.basicConfig(filename=LOG_FILE_NAME,
Expand Down Expand Up @@ -438,6 +438,8 @@ def main(args):
for comp in args.components:
source_tree.checkout(args.verbose, load_all, load_comp=comp)
printlog('')
# New tree status is unknown, don't return anything.
tree_status = None

logging.info('%s completed without exceptions.', program_name)
# NOTE(bja, 2017-11) tree status is used by the systems tests
Expand Down
Loading

0 comments on commit 8872c0d

Please sign in to comment.