Skip to content

Commit

Permalink
ci: fix fluent test run (#3548)
Browse files Browse the repository at this point in the history
* ci: fix fluent test run

* ci: debug

* ci: debug

* ci: fix
  • Loading branch information
mkundu1 authored Dec 19, 2024
1 parent 70da70b commit ff3db5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .ci/fluent_test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ def _run_single_test(
stderr = container.logs(stdout=False, stderr=True)
if stderr:
stderr = stderr.decode()
for line in stderr.split("\n"):
for line in stderr.splitlines():
if line.strip().startswith("Error:"):
if "Expected exception" in line: # for check_assert.py
container.stop()
else:
raise FluentRuntimeError(line)
raise FluentRuntimeError(stderr)
sleep(1)
logging.debug(container.logs(stderr=True).decode())
print(container.logs(stderr=True).decode())
container.remove()
except docker.errors.DockerException:
pass
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ write-and-run-fluent-tests:
@pip install -r requirements/requirements_build.txt
@poetry install --with test -E reader
@poetry run python -m pytest --write-fluent-journals
@python .ci/fluent_test_runner.py tests
@poetry run python .ci/fluent_test_runner.py tests
2 changes: 0 additions & 2 deletions tests/fluent/test_version/test.py

This file was deleted.

0 comments on commit ff3db5c

Please sign in to comment.