Skip to content

Commit

Permalink
nilrt-snac: insert nirtcfg bin loc to PATH
Browse files Browse the repository at this point in the history
The nirtcfg utility is installed to a non-standard path, for no good
reason. When running the nilrt-snac ptests from an interactive shell,
this nonstandard path is already searched. But when the ptests are run
from an non-interactive shell, they fail to resolve the path.

Add the nonstandard location to the search PATH.

Signed-off-by: Alex Stewart <[email protected]>
  • Loading branch information
amstewart committed Sep 20, 2024
1 parent 1c994ae commit 4ffacf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes-ni/nilrt-snac/files/run-ptest
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/usr/bin/env python3

import os

import pytest


# nirtcfg is installed to a non-standard path
os.environ["PATH"] = "/usr/local/natinst/bin:" + os.environ.get("PATH", "")

pytest.main([
"--automake",
"/usr/lib/nilrt-snac/tests/integration",
Expand Down

0 comments on commit 4ffacf6

Please sign in to comment.