Skip to content

Commit

Permalink
✅ Don't try to test non-latest without --tag
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Aug 17, 2023
1 parent b249dee commit c3b62b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_cpac_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ def run_test(argv, platform):
run_test(before, platform)
# test with args after command
run_test(after, platform)
else:
elif tag=='latest':
# test without --platform and --tag args
run_test(f'cpac {argv}'.split(' '), platform)
4 changes: 2 additions & 2 deletions tests/test_cpac_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run_test(argv):
run_test(before)
# test with args after command
run_test(after)
else:
elif tag=='latest':
# test without --platform and --tag args
run_test(f'cpac {argv}'.split(' '))

Expand Down Expand Up @@ -71,7 +71,7 @@ def run_test(argv, wd): # pylint: disable=invalid-name
run_test(before, wd)
# test with args after command
run_test(after, wd)
else:
elif tag=='latest':
# test without --platform and --tag args
run_test(f'cpac {argv}'.split(' '), wd)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_cpac_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def run_test(argv, platform):
run_test(before, platform)
# test with args after command
run_test(after, platform)
else:
elif tag=='latest':
# test without --platform and --tag args
run_test(f'cpac {argv}'.split(' '), platform)

Expand All @@ -54,6 +54,6 @@ def run_test(argv):
run_test(before)
# test with args after command
run_test(after)
else:
elif tag=='latest':
# test without --platform and --tag args
run_test(f'cpac {argv}'.split(' '))

0 comments on commit c3b62b6

Please sign in to comment.