diff options
Diffstat (limited to 'meta/lib/oeqa/buildperf/base.py')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 6a8d9feb02..adc3da3e2c 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py | |||
@@ -116,12 +116,9 @@ class BuildPerfTestResult(unittest.TextTestResult): | |||
116 | if not rev: | 116 | if not rev: |
117 | rev = self.repo.rev_parse('HEAD') | 117 | rev = self.repo.rev_parse('HEAD') |
118 | if not branch: | 118 | if not branch: |
119 | try: | 119 | branch = self.repo.get_current_branch() |
120 | # Strip 11 chars, i.e. 'refs/heads' from the beginning | 120 | if not branch: |
121 | branch = self.repo.run_cmd(['symbolic-ref', 'HEAD'])[11:] | ||
122 | except GitError: | ||
123 | log.debug('Currently on detached HEAD') | 121 | log.debug('Currently on detached HEAD') |
124 | branch = None | ||
125 | return str(rev), str(branch) | 122 | return str(rev), str(branch) |
126 | 123 | ||
127 | def addSuccess(self, test): | 124 | def addSuccess(self, test): |