Skip to content

Commit b3df564

Browse files
committed
check miniwob in makefile
1 parent 3fe376a commit b3df564

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ miniwob: stop-miniwob
99
@git clone https://github.com/Farama-Foundation/miniwob-plusplus.git || true
1010
@cd miniwob-plusplus && git checkout 7fd85d71a4b60325c6585396ec4f48377d049838
1111
@python -m http.server 8080 --directory miniwob-plusplus/miniwob/html & echo $$! > .miniwob-server.pid
12+
@sleep 3
1213
@echo "MiniWob server started on http://localhost:8080"
1314

15+
check-miniwob:
16+
@curl -I "http://localhost:8080/miniwob/" || (echo "MiniWob not reachable" && exit 1)
17+
@echo "MiniWob server is reachable"
18+
1419
stop-miniwob:
1520
@kill -9 `cat .miniwob-server.pid` || true
1621
@rm -f .miniwob-server.pid
@@ -20,7 +25,7 @@ run-tests:
2025
@MINIWOB_URL="http://localhost:8080/miniwob/" pytest -n 5 --durations=10 -m 'not pricy' tests/
2126
@echo "Tests completed"
2227

23-
test: setup miniwob run-tests stop-miniwob
28+
test: setup miniwob check-miniwob run-tests stop-miniwob
2429

2530
lint: setup
2631
@black src/ --check --diff

0 commit comments

Comments
 (0)