-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f636f7
commit ad2e5d3
Showing
2 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This file is read by pytest before running the tests to set them up. We use it | ||
# to have the SAS+ file for the example task ready for the @pytest.parametrize | ||
# function in tests.py. Translating the task in setup_module() does not work in | ||
# this case, because the @pytest.parametrize decorator is executed before | ||
# setup_module() is called. | ||
|
||
import subprocess | ||
import sys | ||
|
||
from .util import REPO_ROOT_DIR | ||
|
||
|
||
def translate(): | ||
"""Create output.sas file for example task.""" | ||
cmd = [sys.executable, "fast-downward.py", "--translate", | ||
"misc/tests/benchmarks/gripper/prob01.pddl"] | ||
subprocess.check_call(cmd, cwd=REPO_ROOT_DIR) | ||
|
||
|
||
def pytest_sessionstart(session): | ||
translate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters