mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Evaluate full paths for image and build_root
BUG=chromium-os:19854 TEST=Ran it STATUS=Verified Change-Id: I2fd7d77145e3607c29cfc64500fca8525e9b5992 Reviewed-on: http://gerrit.chromium.org/gerrit/6939 Reviewed-by: Kris Rambish <krisr@chromium.org> Tested-by: Kris Rambish <krisr@chromium.org> Reviewed-by: Stanley Wong <stanleyw@chromium.org> Tested-by: Stanley Wong <stanleyw@chromium.org>
This commit is contained in:
parent
a308b39eae
commit
4d290ef5a4
@ -50,8 +50,11 @@ if [ "${FLAGS_build_root}" = "/build" ]; then
|
|||||||
FLAGS_build_root="/build/${FLAGS_board}/usr/local/autotest"
|
FLAGS_build_root="/build/${FLAGS_board}/usr/local/autotest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IMAGE_DIR=$(dirname "$FLAGS_image")
|
FLAGS_build_root=$(eval readlink -f "${FLAGS_build_root}")
|
||||||
IMAGE_NAME=$(basename "$FLAGS_image")
|
FLAGS_image=$(eval readlink -f "${FLAGS_image}")
|
||||||
|
|
||||||
|
IMAGE_DIR=$(dirname "${FLAGS_image}")
|
||||||
|
IMAGE_NAME=$(basename "${FLAGS_image}")
|
||||||
ROOT_FS_DIR="${IMAGE_DIR}/rootfs"
|
ROOT_FS_DIR="${IMAGE_DIR}/rootfs"
|
||||||
|
|
||||||
PYAUTO_DEP="${FLAGS_build_root}/client/deps/pyauto_dep"
|
PYAUTO_DEP="${FLAGS_build_root}/client/deps/pyauto_dep"
|
||||||
@ -59,8 +62,6 @@ CHROME_DEP="${FLAGS_build_root}/client/deps/chrome_test"
|
|||||||
VBOOT_DIR="${CHROOT_TRUNK_DIR}/src/platform/vboot_reference/scripts/"\
|
VBOOT_DIR="${CHROOT_TRUNK_DIR}/src/platform/vboot_reference/scripts/"\
|
||||||
"image_signing"
|
"image_signing"
|
||||||
|
|
||||||
echo ${CHROOT_TRUNK_DIR}
|
|
||||||
|
|
||||||
if [ ! -d $PYAUTO_DEP ]; then
|
if [ ! -d $PYAUTO_DEP ]; then
|
||||||
die "The required path: $PYAUTO_DEP does not exist. Did you mean to pass \
|
die "The required path: $PYAUTO_DEP does not exist. Did you mean to pass \
|
||||||
--build_root and the path to the autotest bundle?"
|
--build_root and the path to the autotest bundle?"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user