mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
build-perf-test-wrapper.sh: check for positional arguments
Stricter checking of command line arguments. The script doesn't use any positional arguments so don't accept any and error out if those are found. (From OE-Core rev: 4725ee8e4e4837446dfa3a319eb68cc9572c55eb) 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>
This commit is contained in:
committed by
Richard Purdie
parent
a8002cb367
commit
eb1c8cd1d9
@@ -57,6 +57,14 @@ while getopts "ha:c:C:w:" opt; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Check positional args
|
||||||
|
shift "$((OPTIND - 1))"
|
||||||
|
if [ $# -ne 0 ]; then
|
||||||
|
echo "ERROR: No positional args are accepted."
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Running on `uname -n`"
|
echo "Running on `uname -n`"
|
||||||
if ! git_topdir=$(git rev-parse --show-toplevel); then
|
if ! git_topdir=$(git rev-parse --show-toplevel); then
|
||||||
echo "The current working dir doesn't seem to be a git clone. Please cd there before running `basename $0`"
|
echo "The current working dir doesn't seem to be a git clone. Please cd there before running `basename $0`"
|
||||||
|
|||||||
Reference in New Issue
Block a user