aboutsummaryrefslogtreecommitdiff
path: root/ndk/checkbuild.py
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2023-05-18 12:17:14 -0700
committerDan Albert <danalbert@google.com>2023-05-18 13:33:54 -0700
commit33f2549f40fffe849cb69c6b042feaa8caf0d91f (patch)
treec5fe6181af80e95635a9f6d5cb04e23aab50f352 /ndk/checkbuild.py
parentd010201d2245bf059ce1647e9eb89c834c26581f (diff)
downloadndk-33f2549f40fffe849cb69c6b042feaa8caf0d91f.tar.gz
Move ndk-stack tests to a more testable location.
The hyphen in the directory name made it an invalid python package path which meant these tests could only be found if the full path was given. We ought to be putting all our python tests in the same directory anyway so we don't have to update the test path in checkbuild.py every time we add a new test. This may not be a permanent location. This project is still a really funky layout for something that's at least pretending to be a python application (and vscode is baffled by the import of what it thinks is the same module), but it may be worthwhile to split some of the python code out so it can be shared with other projects anyway. This will do for now. Bug: None Test: pytest tests/pytest Change-Id: Ib12e1d6cf509291642806039ffd7b32e5aa35ccb
Diffstat (limited to 'ndk/checkbuild.py')
-rwxr-xr-xndk/checkbuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndk/checkbuild.py b/ndk/checkbuild.py
index 052847b1e..a12c89edf 100755
--- a/ndk/checkbuild.py
+++ b/ndk/checkbuild.py
@@ -844,7 +844,7 @@ class Pytest(ndk.builds.LintModule):
if not shutil.which("pytest"):
logging.warning("Skipping pytest. pytest was not found on your path.")
return
- subprocess.check_call(["pytest", "ndk"])
+ subprocess.check_call(["pytest", "ndk", "tests/pytest"])
@register