generated from llnl/RAJA-project-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
It would be very useful to add the ability to run a follow up command if the test passed that runs on the same node. For example, I have a test that outputs files that I want to check the answers in. Unfortunately, if I do the following:
foo_test = test(executable="foo") // outputs some file filled with answers
testif(foo_test, executable="foo_checker.py") // checks file output by foo for correctness
The foo_checker.py test runs on a completely different node from foo and the file is not there yet. So my team (and others I have spoken to) have to add sleep(60) to the start of our checker.
This could be avoided if they ran on the same node. Something like:
test(executable="foo", checker="foo_checker.py") // runs executable and then runs checker only if foo returns non-zero
or:
foo_test = test(executable="foo")
testif(foo_test, executable="foo_checker.py", same_node=True)
Edit another idea after talking to @dawson6:
// command_group maybe a better name than wrapper
my_wrapper = wrapper(executable=foo)
my_wrapper.add(executable=checker)
test(my_wrapper)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers