summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-08 13:37:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-08 14:11:45 +0000
commit3ec43bf4c6c8f7730a67f63ad4e14903f289014e (patch)
tree54013a8ec842441184935310c25bf2758c423b65
parent92fdb64ac9689b9cac8a1229b1928b50338969be (diff)
downloadopenembedded-core-contrib-3ec43bf4c6c8f7730a67f63ad4e14903f289014e.tar.gz
oe-build-perf-report: Allow branch without hostname
Allow the branch to be set without the hostname option. Previously if hostname wasn't set, branch would be overwritten regardless of whether it was set or not. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/oe-build-perf-report4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 0bd05f44ef..c91f74192b 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -512,10 +512,10 @@ def auto_args(repo, args):
key = split[0]
val = split[1].strip()
- if key == 'hostname':
+ if key == 'hostname' and not args.hostname:
log.debug("Using hostname %s", val)
args.hostname = val
- elif key == 'branch':
+ elif key == 'branch' and not args.branch:
log.debug("Using branch %s", val)
args.branch = val