diff --git a/thunder/tests/test_dynamo.py b/thunder/tests/test_dynamo.py index 915e188295..3e3b545e41 100644 --- a/thunder/tests/test_dynamo.py +++ b/thunder/tests/test_dynamo.py @@ -917,7 +917,8 @@ def func(x): def check(file_name, cmd): assert os.path.exists(file_name) - result = subprocess.run([cmd, file_name], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) + cmd = cmd + [file_name] + result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) assert result.returncode == 0, f"Reproducer {file_name} failed: {result}" s1 = f"{tmp_path}/graph0_thunder_0.py"