Skip to content

Commit

Permalink
(#47) Only link node_modules if SAKULI_TEST_SUITE is set
Browse files Browse the repository at this point in the history
  • Loading branch information
svettwer committed Jul 21, 2020
1 parent 201834b commit 39b7731
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/common/scripts/vnc_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ if [[ $DEBUG == true ]] || [[ $1 =~ -t|--tail-log ]]; then
fi

# Link global node_modules into the actual test suite
ln -s $(npm root -g | head -n 1) ${SAKULI_TEST_SUITE}/node_modules
if [ "${SAKULI_TEST_SUITE}" ]; then
ln -s $(npm root -g | head -n 1) ${SAKULI_TEST_SUITE}/node_modules
fi

if [ -z "$1" ] || [[ $1 =~ -w|--wait ]]; then
wait $PID_SUB
Expand All @@ -118,4 +120,6 @@ else
fi

# Remove the link to the actual test suite as it is most likely a mounted volume
rm ${SAKULI_TEST_SUITE}/node_modules
if [ -d ${SAKULI_TEST_SUITE}/node_modules ]; then
rm ${SAKULI_TEST_SUITE}/node_modules
fi

0 comments on commit 39b7731

Please sign in to comment.