Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN chmod +x /usr/local/bin/kubectl
RUN apt-get update && apt-get install -y git \
curl \
unzip \
python3-pip \
pipx \
&& apt-get clean

RUN apt-get update && \
Expand All @@ -35,7 +35,7 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2
unzip awscliv2.zip && \
./aws/install

RUN pip install oci-cli
RUN pipx install oci-cli==3.29.0

COPY README.md /
COPY entrypoint.sh /entrypoint.sh
Expand Down
10 changes: 7 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi

if [ ! -d $dir ]
then
git clone https://github.com/litmuschaos/chaos-ci-lib.git
git clone https://github.com/merkata/chaos-ci-lib.git
fi
cd chaos-ci-lib

Expand All @@ -45,8 +45,12 @@ if [ "$EXPERIMENT_NAME" == "all" ]; then
cd ..

elif [ ! -z "$EXPERIMENT_NAME" ]; then
## Run the selected chaos experiment
go test experiments/${EXPERIMENT_NAME}_test.go -v -count=1 -timeout=${TEST_TIMEOUT}s
## Run the selected chaos experiment(s)
IFS=' ' read -r -a experiments <<< "$EXPERIMENT_NAME"
for experiment in "${experiments[@]}"
do
go test experiments/"${experiment}"_test.go -v -count=1 -timeout=${TEST_TIMEOUT}s
done
fi

##litmus cleanup
Expand Down