Skip to content

Commit

Permalink
nox: Fix generate test data command
Browse files Browse the repository at this point in the history
Currently, the `nox -s generate-test-data` runs only on tests marked as
e2e because of passing the `PYTEST_ADDOPTS` env variable. This was
unfortunately implemented based on my wrong assumption that only e2e
tests with docker builds generate SBOM.

Fix the command and run all integration tests when someone wants to
regenerate test data based on their changes.

Signed-off-by: Michal Šoltis <[email protected]>
  • Loading branch information
slimreaper35 committed Jan 10, 2025
1 parent 8ce06ef commit 785709c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def generate_test_data(session: Session) -> None:
_run_integration_tests(
session,
{
"CACHI2_RUN_ALL_INTEGRATION_TESTS": "true",
"CACHI2_GENERATE_TEST_DATA": "true",
"PYTEST_ADDOPTS": "-k test_e2e",
},
)

Expand Down

0 comments on commit 785709c

Please sign in to comment.