Skip to content

Commit

Permalink
(#66) Added test to start sakuli container with other commands than n…
Browse files Browse the repository at this point in the history
…pm t
  • Loading branch information
svettwer committed Sep 14, 2020
1 parent 23f0511 commit 80c30d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,12 @@ docker run \
--shm-size=2G \
taconsol/sakuli:${1:-latest}
[[ "$?" == "0" ]] && echo "Expected error code != 0" && exit 1
set -e
set -e

# start another command than sakuli
docker run \
--rm \
-e SAKULI_LICENSE_KEY=${SAKULI_LICENSE_KEY} \
--shm-size=2G \
taconsol/sakuli:${1:-latest} \
"echo success!"
3 changes: 0 additions & 3 deletions src/common/scripts/execute_testsuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ elif [ "${GIT_URL}" ]; then
git clone $GIT_URL $GIT_REPOSITORY_DIR
rsync ${RSYNC_OPTIONS} ${GIT_REPOSITORY_DIR}/${GIT_CONTEXT_DIR}/../* ${SAKULI_EXECUTION_DIR} --exclude node_modules
SAKULI_SUITE_NAME=$(getTestSuiteName ${GIT_CONTEXT_DIR})
else
echo "ERROR: SAKULI_TEST_SUITE not set."
exit 1
fi

# Link global node_modules into ${SAKULI_EXECUTION_DIR}
Expand Down

0 comments on commit 80c30d5

Please sign in to comment.