Skip to content

Commit d12c67c

Browse files
committed
fix(discover): discover files when robot arguments with relative files are now read correctly
1 parent d6c6f09 commit d12c67c

File tree

1 file changed

+1
-1
lines changed
  • packages/runner/src/robotcode/runner/cli/discover

1 file changed

+1
-1
lines changed

packages/runner/src/robotcode/runner/cli/discover/discover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def _validate_execution_mode(self: SuiteStructureParser, suite: TestSuite) -> No
189189
def get_file(self: FileReader, source: Union[str, Path, IOBase], accept_text: bool) -> Any:
190190
path = self._get_path(source, accept_text)
191191

192-
if path:
192+
if path and Path(path).is_absolute():
193193
if _stdin_data is not None and (data := _stdin_data.get(Uri.from_path(path))) is not None:
194194
if data is not None:
195195
return old_get_file(self, data, True)

0 commit comments

Comments
 (0)