[OE-core] [PATCH] build-perf-test-wrapper.sh: fix issues with non-existing path arguments

Markus Lehtonen markus.lehtonen at linux.intel.com
Fri Jan 27 13:24:25 UTC 2017


Without the '-s' option realpath will error out if the given path does
not exist.

Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
---
 scripts/contrib/build-perf-test-wrapper.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh
index e03ea97..affd242 100755
--- a/scripts/contrib/build-perf-test-wrapper.sh
+++ b/scripts/contrib/build-perf-test-wrapper.sh
@@ -44,14 +44,14 @@ while getopts "ha:c:C:w:" opt; do
         h)  usage
             exit 0
             ;;
-        a)  archive_dir=`realpath "$OPTARG"`
+        a)  archive_dir=`realpath -s "$OPTARG"`
             ;;
         c)  commitish=$OPTARG
             ;;
-        C)  results_repo=`realpath "$OPTARG"`
+        C)  results_repo=`realpath -s "$OPTARG"`
             commit_results=("--commit-results" "$results_repo")
             ;;
-        w)  base_dir=`realpath "$OPTARG"`
+        w)  base_dir=`realpath -s "$OPTARG"`
             ;;
         *)  usage
             exit 1
-- 
2.10.2




More information about the Openembedded-core mailing list