Skip to content

Commit

Permalink
Propagate return code for flux-local test (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter authored Feb 24, 2023
1 parent dc79290 commit ae13619
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flux_local/tool/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pathlib
import tempfile
from pathlib import Path
import sys
from typing import cast, Generator, Any

import nest_asyncio
Expand Down Expand Up @@ -322,7 +323,9 @@ async def run( # type: ignore[no-untyped-def]
"no:pytest-golden",
]
_LOGGER.debug("pytest.main: %s", pytest_args)
pytest.main(
retcode = pytest.main(
pytest_args,
plugins=[ManifestPlugin(query)],
)
if retcode:
sys.exit(retcode)

0 comments on commit ae13619

Please sign in to comment.