Skip to content

Test that generated tests report the file of the original test - #3750

Open
Shakhtar-Sankur wants to merge 1 commit into
reframe-hpc:developfrom
Shakhtar-Sankur:test-generated-test-filename
Open

Shakhtar-Sankur wants to merge 1 commit into
reframe-hpc:developfrom
Shakhtar-Sankur:test-generated-test-filename

Conversation

@Shakhtar-Sankur

Copy link
Copy Markdown

Tests generated with --distribute, --repeat and -P used to report ReFrame's own testgenerators.py as their file, e.g. in the failure report (#3669). This was fixed in 4.10 by 9179c47, which passes the module of the original test to make_test(), but nothing tests it. This PR adds a check to each of the three test generator unit tests that the generated tests report the same file as the original test.

Testing:

  • 4.9.3: reframe -c x.py -r --distribute=all --failure-stats reports testgenerators.py (the bug); develop reports x.py.
  • develop + this PR: unittests/test_testgenerators.py passes, and the whole unit test suite passes (1451 passed, 280 skipped).
  • The new checks fail on 4.9.3 and on develop with the testgenerators.py part of 9179c47 reverted, so they catch the bug.

Run log: https://www.kaggle.com/code/obsidian93/notebook094cf7bbfb

Closes #3669

Tests generated with `--distribute`, `--repeat` and `-P` used to report
ReFrame's own `testgenerators.py` as their file, for example in the
failure report (reframe-hpc#3669). This was fixed by passing the module of the
original test to `make_test()`; check it in the test generator unit tests.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the "Failure info" report test name when using --distribute

1 participant