]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
build-perf-test-wrapper.sh: show defaults for '-a' and '-w'
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 29 Sep 2016 17:10:09 +0000 (20:10 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Sep 2016 16:14:12 +0000 (17:14 +0100)
Display default values for '-a' and '-w' command line arguments in the
usage help text.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/contrib/build-perf-test-wrapper.sh

index 90dd5454955964d25327fc9a9839acc1c6e441f6..97e24d8b23f54b515d3be8249ef484d9b2d836a1 100755 (executable)
@@ -19,6 +19,8 @@
 # oe-build-perf-test and archives the results.
 
 script=`basename $0`
+archive_dir=~/perf-results/archives
+
 usage () {
 cat << EOF
 Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO]
@@ -26,16 +28,16 @@ Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO]
 Optional arguments:
   -h                show this help and exit.
   -a ARCHIVE_DIR    archive results tarball here, give an empty string to
-                    disable tarball archiving
+                    disable tarball archiving (default: $archive_dir)
   -c COMMITISH      test (checkout) this commit
   -C GIT_REPO       commit results into Git
   -w WORK_DIR       work dir for this script
+                    (default: GIT_TOP_DIR/build-perf-test)
 EOF
 }
 
 
 # Parse command line arguments
-archive_dir=~/perf-results/archives
 commitish=""
 while getopts "ha:c:C:w:" opt; do
     case $opt in