diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2020-07-10 11:43:33 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2020-07-10 11:43:33 +0100 |
commit | 9a83b8e23364ca119ead17df9755275baa77b690 (patch) | |
tree | fffb524fc2b94cae4aaa54227ec9cd80bc0a4b87 /plans/testplan2html.py | |
parent | f73621eb143ab0d4ed51dd95f589c88199f8f3b9 (diff) |
plans: support 'branch' checkout in testplan2html
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'plans/testplan2html.py')
-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 b463492..d8b8219 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']) |