diff options
| author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-09-29 20:10:09 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-01 21:45:56 +0100 |
| commit | 4df40248b38082340180bfd6dd90e180e2119a4f (patch) | |
| tree | 9fbea80a227578691dd662aef1f68baa79633178 /scripts/contrib | |
| parent | eb1c8cd1d938cb4d1bf44c525cea1eafb52cdb96 (diff) | |
| download | poky-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-x | scripts/contrib/build-perf-test-wrapper.sh | 6 |
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 | ||
| 21 | script=`basename $0` | 21 | script=`basename $0` |
| 22 | archive_dir=~/perf-results/archives | ||
| 23 | |||
| 22 | usage () { | 24 | usage () { |
| 23 | cat << EOF | 25 | cat << EOF |
| 24 | Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO] | 26 | Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO] |
| @@ -26,16 +28,16 @@ Usage: $script [-h] [-c COMMITISH] [-C GIT_REPO] | |||
| 26 | Optional arguments: | 28 | Optional 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) | ||
| 33 | EOF | 36 | EOF |
| 34 | } | 37 | } |
| 35 | 38 | ||
| 36 | 39 | ||
| 37 | # Parse command line arguments | 40 | # Parse command line arguments |
| 38 | archive_dir=~/perf-results/archives | ||
| 39 | commitish="" | 41 | commitish="" |
| 40 | while getopts "ha:c:C:w:" opt; do | 42 | while getopts "ha:c:C:w:" opt; do |
| 41 | case $opt in | 43 | case $opt in |
