Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e(generic): deal with proc not found #1539

Merged
merged 3 commits into from
Jul 24, 2024
Merged
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
6 changes: 3 additions & 3 deletions chaos/experiments/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ cleanup() {
sleep 2
if [ $exit_code -eq 0 ]; then
rm instance_*.log 2>/dev/null || true
find . -type d -name "instance_*" -print0 | xargs -0 rm -rf 2>/dev/null || true
find . -xdev -type d -name "instance_*" -print0 | xargs -0 rm -rf 2>/dev/null || true
fi
rm -rf tmp_rocks_* 2>/dev/null || true
find . -type d -name "tmp_rocks_*" -print0 | xargs -0 rm -rf 2>/dev/null || true
find . -xdev -type d -name "tmp_rocks_*" -print0 | xargs -0 rm -rf 2>/dev/null || true
echo "Job is done. With exit code $exit_code"
}
trap cleanup EXIT INT TERM
Expand Down Expand Up @@ -264,7 +264,7 @@ run_test() {
echo "Killing the leader instance on address $leader_port..."
for i in "${!leader_ports[@]}"; do
if [ "${leader_ports[i]}" == "$leader_port" ]; then
killport --quiet $leader_port
killport --quiet $leader_port || true
break
fi
done
Expand Down