summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-09-29 20:10:09 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-01 21:45:56 +0100
commit4df40248b38082340180bfd6dd90e180e2119a4f (patch)
tree9fbea80a227578691dd662aef1f68baa79633178 /scripts/contrib
parenteb1c8cd1d938cb4d1bf44c525cea1eafb52cdb96 (diff)
downloadpoky-4df40248b38082340180bfd6dd90e180e2119a4f.tar.gz
build-perf-test-wrapper.sh: show defaults for '-a' and '-w'
Display default values for '-a' and '-w' command line arguments in the usage help text. (From OE-Core rev: 580708398f22333bc4b5899e4129a8939fb7ce12) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/build-perf-test-wrapper.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh
index 90dd545495..97e24d8b23 100755
--- a/scripts/contrib/build-perf-test-wrapper.sh
+++ b/scripts/contrib/build-perf-test-wrapper.sh
@@ -19,6 +19,8 @@
19# oe-build-perf-test and archives the results. 19# oe-build-perf-test and archives the results.
20 20
21script=`basename $0` 21script=`basename $0`
22archive_dir=~/perf-results/archives
23
22usage () { 24usage () {
23cat << EOF 25cat << EOF
24Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO] 26Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO]
@@ -26,16 +28,16 @@ Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO]
26Optional arguments: 28Optional arguments:
27 -h show this help and exit. 29 -h show this help and exit.
28 -a ARCHIVE_DIR archive results tarball here, give an empty string to 30 -a ARCHIVE_DIR archive results tarball here, give an empty string to
29 disable tarball archiving 31 disable tarball archiving (default: $archive_dir)
30 -c COMMITISH test (checkout) this commit 32 -c COMMITISH test (checkout) this commit
31 -C GIT_REPO commit results into Git 33 -C GIT_REPO commit results into Git
32 -w WORK_DIR work dir for this script 34 -w WORK_DIR work dir for this script
35 (default: GIT_TOP_DIR/build-perf-test)
33EOF 36EOF
34} 37}
35 38
36 39
37# Parse command line arguments 40# Parse command line arguments
38archive_dir=~/perf-results/archives
39commitish="" 41commitish=""
40while getopts "ha:c:C:w:" opt; do 42while getopts "ha:c:C:w:" opt; do
41 case $opt in 43 case $opt in