Skip to content

Commit

Permalink
Change path
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pbulawa committed Oct 26, 2023
1 parent 65e91d3 commit 0cb5ea3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions ci/container/test_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,13 @@ cd $WORKSPACE

if [[ "$LOCAL_USER_NAME" == "jenkins" ]]; then
cd target_client
export PATH=$WORKSPACE/target_client/node_modules/mocha/bin:$PATH
export PATH=$WORKSPACE/target_client/node_modules/.bin:$PATH
else
export PATH=$WORKSPACE/node_modules/mocha/bin:$PATH
export PATH=$WORKSPACE/node_modules/.bin:$PATH
fi
cp $SOURCE_ROOT/ci/container/package.json .
npm install

echo "[DEBUG] List of workspace"
ls "$WORKSPACE"
echo "[DEBUG] List of node_modules"
ls "$WORKSPACE/node_modules"
echo "[DEBUG] List of mocha bin"
ls "$WORKSPACE/node_modules/mocha/bin"

PACKAGE_NAME=$(cd $WORKSPACE && ls snowflake-sdk*.tgz)
npm install $WORKSPACE/${PACKAGE_NAME}

Expand Down Expand Up @@ -81,7 +74,7 @@ if [[ "$SHOULD_GENERATE_COVERAGE_REPORT" == "1" ]];
)
else
MOCHA_CMD=(
"node" "mocha" "--timeout" "$TIMEOUT" "--recursive" "--full-trace"
"mocha" "--timeout" "$TIMEOUT" "--recursive" "--full-trace"
)
fi

Expand Down

0 comments on commit 0cb5ea3

Please sign in to comment.