From: Markus Lehtonen <markus.lehtonen@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] build-perf-test-wrapper.sh: fix handling of -C argument
Date: Fri, 2 Sep 2016 16:37:25 +0300 [thread overview]
Message-ID: <1472823445-19323-1-git-send-email-markus.lehtonen@linux.intel.com> (raw)
Not specifying -C caused oe-build-perf-test to try to commit results to
the build directory.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
---
scripts/contrib/build-perf-test-wrapper.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh
index efc2b79..d61e438 100755
--- a/scripts/contrib/build-perf-test-wrapper.sh
+++ b/scripts/contrib/build-perf-test-wrapper.sh
@@ -37,7 +37,6 @@ EOF
# Parse command line arguments
archive_dir=~/perf-results/archives
commitish=""
-results_repo=""
while getopts "ha:c:C:w:" opt; do
case $opt in
h) usage
@@ -48,6 +47,7 @@ while getopts "ha:c:C:w:" opt; do
c) commitish=$OPTARG
;;
C) results_repo=`realpath "$OPTARG"`
+ commit_results=("--commit-results" "$results_repo")
;;
w) base_dir=`realpath "$OPTARG"`
;;
@@ -110,7 +110,7 @@ fi
if ! oe-build-perf-test --out-dir "$results_dir" \
--globalres-file "$globalres_log" \
--lock-file "$base_dir/oe-build-perf.lock" \
- --commit-results "$results_repo" \
+ "${commit_results[@]}" \
--commit-results-branch "{tester_host}/{git_branch}/$machine" \
--commit-results-tag "{tester_host}/{git_branch}/$machine/{git_commit_count}-g{git_commit}/{tag_num}"; then
echo "oe-build-perf-test script failed!"
--
2.6.6
reply other threads:[~2016-09-02 13:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1472823445-19323-1-git-send-email-markus.lehtonen@linux.intel.com \
--to=markus.lehtonen@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox