CWD is changed at tsp/jobs/common_prep_flash_conf.sh start
as it is in other scripts.
Change-Id: I1a97b5f3397195ed56567467bf78337502f3cce6
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
BUILD_NR="$1"
TARGET="$2"
+WORKDIR="${WS_TEST}/${BUILD_NR}"
test -n "${BUILD_NR}" || die "Missing argument: build nr"
test -n "$TARGET" || die "Missing argument: target"
+mkdir -p "${WORKDIR}"
+cd "${WORKDIR}"
+
WORKDIR_REMOTE="${WS_TEST_REMOTE}/${BUILD_NR}"
DWN_WORKDIR="${WS_DOWNLOAD}/${BUILD_NR}"
DIFF_FILE="${DWN_WORKDIR}/diff-${TARGET}.report"
rm -rf "${WORKDIR}"
-mkdir -p "${WORKDIR}"
-cd "${WORKDIR}"
if check_diff "${DIFF_FILE}" "$1" "${TARGET}";
then
echo "Add common_prep_flash_conf job to the $TARGET queue"