Skip to content

Commit a54fe02

Browse files
committedFeb 5, 2025·
Check Locust files only when on x86_64
1 parent afc99af commit a54fe02

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
 

‎tests/test_http.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,13 @@ _EOF_
188188
rlPhaseEnd
189189

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

197200
rlPhaseStartCleanup

0 commit comments

Comments
 (0)
Please sign in to comment.