From c49367b38ff63b5b97aec2f6192705c610a9099b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20Ospal=C3=BD?= Date: Wed, 2 Oct 2019 10:58:37 +0200 Subject: [PATCH] Fix SDC_LOCAL_GITREPO for relative paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit SDC_LOCAL_GITREPO will not do what you want (most likely) if used with a relative path - it worked only with an absolute one. This commit fixes this but it adds a new requirement: 'realpath'; which should be on any system as it is part of the coreutils and similar package sets. Issue-ID: SDC-2553 Signed-off-by: Petr Ospalý Change-Id: I2d79252cb315538997c91b754acb59f52469df00 --- scripts/sdc/setup_sdc_for_sanity.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/sdc/setup_sdc_for_sanity.sh b/scripts/sdc/setup_sdc_for_sanity.sh index 2d644c3f..dba6eb50 100644 --- a/scripts/sdc/setup_sdc_for_sanity.sh +++ b/scripts/sdc/setup_sdc_for_sanity.sh @@ -50,6 +50,7 @@ mkdir -p "${WORKSPACE}/data/clone/" cd "${WORKSPACE}/data/clone" if using_local_images && [ -n "$SDC_LOCAL_GITREPO" ] ; then + SDC_LOCAL_GITREPO=$(realpath "$SDC_LOCAL_GITREPO") if [ -d "$SDC_LOCAL_GITREPO" ] ; then rm -rf ./sdc cp -a "$SDC_LOCAL_GITREPO" ./sdc -- 2.16.6