Skip to content

Commit

Permalink
Check Locust files only when on x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Feb 5, 2025
1 parent d4d0d21 commit 8c539c1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_http.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,13 @@ _EOF_
rlPhaseEnd

rlPhaseStartTest "Sanity execute Locust files"
# this is designed to check that these files don't crash,
rlRun -t -c "locust --headless --users 1 --spawn-rate 1 --run-time 5s -H https://localhost/ --locustfile tests/performance/base.py"
rlRun -t -c "locust --headless --users 1 --spawn-rate 1 --run-time 5s -H https://localhost/ --locustfile tests/performance/api_write_test.py"
rlRun -t -c "locust --headless --users 1 --spawn-rate 0.01 --run-time 5s -H https://localhost/ --locustfile tests/performance/web_simulation_test.py"
ARCH=$(uname -m)
if [ "$ARCH" == "x86_64" ]; then
# this is designed to check that these files don't crash,
rlRun -t -c "locust --headless --users 1 --spawn-rate 1 --run-time 5s -H https://localhost/ --locustfile tests/performance/base.py"
rlRun -t -c "locust --headless --users 1 --spawn-rate 1 --run-time 5s -H https://localhost/ --locustfile tests/performance/api_write_test.py"
rlRun -t -c "locust --headless --users 1 --spawn-rate 0.01 --run-time 5s -H https://localhost/ --locustfile tests/performance/web_simulation_test.py"
fi
rlPhaseEnd

rlPhaseStartCleanup
Expand Down

0 comments on commit 8c539c1

Please sign in to comment.