diff options
author | mwasilew <milosz.wasilewski@linaro.org> | 2020-07-29 12:54:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 12:54:16 +0100 |
commit | a37c0c81cfd80557e9a47932318650a8a9aba827 (patch) | |
tree | 53aded749631d030c684c09d7b7ec9390d8df96d /plans | |
parent | 51173ac5566b9ebfdcbe21784ac06de39206ded0 (diff) | |
parent | 9a83b8e23364ca119ead17df9755275baa77b690 (diff) |
Merge pull request #183 from mwasilew/testplan_branch_support
plans: support 'branch' checkout in testplan2html
Diffstat (limited to 'plans')
-rw-r--r-- | plans/testplan2html.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plans/testplan2html.py b/plans/testplan2html.py index 024e01b..e6dd177 100644 --- a/plans/testplan2html.py +++ b/plans/testplan2html.py @@ -86,6 +86,8 @@ def test_exists(test, repositories, args): os.chdir(repositories[test['repository']]) if 'revision' in test.keys(): subprocess.call(['git', 'checkout', test['revision']]) + elif 'branch' in test.keys(): + subprocess.call(['git', 'checkout', test['branch']]) else: # if no revision is specified, use current HEAD output = subprocess.check_output(['git', 'rev-parse', 'HEAD']) |