Skip to content

Commit 76e4188

Browse files
committed
fix cwd
1 parent 068f545 commit 76e4188

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/smoke_test/smoke_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package_type = os.getenv("MATRIX_PACKAGE_TYPE")
1919

2020
is_cuda_system = gpu_arch_type == "cuda"
21-
SCRIPT_DIR = Path(__file__).parent
2221
NIGHTLY_ALLOWED_DELTA = 3
2322

2423
MODULES = [
@@ -206,10 +205,11 @@ def foo(x: torch.Tensor) -> torch.Tensor:
206205
x_pt2 = torch.compile(model, mode="max-autotune")(x)
207206

208207
def smoke_test_modules():
208+
cwd = os.getcwd()
209209
for module in MODULES:
210210
if module["repo"]:
211-
if not os.path.exists(f"{SCRIPT_DIR}/{module['repo_name']}"):
212-
print(f"Path does not exist: {SCRIPT_DIR}/{module['repo_name']}")
211+
if not os.path.exists(f"{cwd}/{module['repo_name']}"):
212+
print(f"Path does not exist: {cwd}/{module['repo_name']}")
213213
subprocess.check_output(f"git clone --depth 1 {module['repo']}", stderr=subprocess.STDOUT, shell=True)
214214
try:
215215
output = subprocess.check_output(

0 commit comments

Comments
 (0)