Mock the nsight compute tool with a bash script

This commit is contained in:
Cosmin Ștefan Ciocan
2024-01-26 11:25:58 +00:00
parent 36fc282eed
commit b49062e9e2
4 changed files with 17 additions and 5 deletions
+5
View File
@@ -37,6 +37,11 @@ def copy_source_to_group(
return destination_fpath
@pytest.fixture(autouse=True, scope="session")
def before_all(scripts_path: str):
os.environ["PATH"] = scripts_path + os.pathsep + os.environ["PATH"]
@pytest.fixture(autouse=True, scope="function")
def before_each(plugin: NVCCPlugin):
shutil.rmtree(plugin.workdir, ignore_errors=True) # before test