diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py index 5e1a811e6c7..e52d0e4e1c7 100644 --- a/utils/lit/lit/TestFormats.py +++ b/utils/lit/lit/TestFormats.py @@ -183,8 +183,10 @@ class OneCommandPerFileTest: self.createTempInput(tmp, test) tmp.flush() cmd.append(tmp.name) - else: + elif hasattr(test, 'source_path'): cmd.append(test.source_path) + else: + cmd.append(test.getSourcePath()) out, err, exitCode = TestRunner.executeCommand(cmd)