Skip to content

Commit

Permalink
tests: refactor various tests for local dev/testing
Browse files Browse the repository at this point in the history
A few tests make temp dirs with `mkdir` without `-p`, which will throw errors
if the directory already exists.
  • Loading branch information
HumorBaby committed Aug 7, 2019
1 parent 470d5f7 commit 7d6f1aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -e
TESTMODULE="m_svsoper"

# Create directory for testing
mkdir /tmp/test-extras/
mkdir -p tmp/test-extras/

docker build --build-arg EXTRASMODULES="$TESTMODULE" .

Expand Down
2 changes: 1 addition & 1 deletion tests/mountConfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set -e
. "$(dirname "$0")/.portconfig.sh"

# Create config directory for testing
mkdir /tmp/test-mountConfig/ && sudo chown 10000 /tmp/test-mountConfig/
mkdir -p tmp/test-mountConfig/ && sudo chown 10000 /tmp/test-mountConfig/

# Create docker container with our test parameters
DOCKERCONTAINER=$(docker run -d -v /tmp/test-mountConfig/:/inspircd/conf -p "127.0.0.1:${CLIENT_PORT}:6667" -p "127.0.0.1:${TLS_CLIENT_PORT}:6697" inspircd:testing)
Expand Down

0 comments on commit 7d6f1aa

Please sign in to comment.