Skip to content

Commit 79a8256

Browse files
committed
Fix issues
1 parent 33576cd commit 79a8256

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

flow/record/fieldtypes/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,8 @@ class command(FieldType):
747747
748748
Example:
749749
750+
.. code-block:: text
751+
750752
'c:\\windows\\malware.exe /info' -> windows_path('c:\\windows\\malware.exe) ['/info']
751753
'/usr/bin/env bash' -> posix_path('/usr/bin/env') ['bash']
752754

tests/fieldtypes/test_fieldtypes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,9 +1053,10 @@ def test_command_record() -> None:
10531053
assert record.commando.args == ["-h"]
10541054

10551055
record = TestRecord(commando="something.so -h -q -something")
1056+
args = ["-h", "-q", "-something"]
10561057
assert isinstance(record.commando.executable, _type)
10571058
assert record.commando.executable == "something.so"
1058-
assert record.commando.args == ["-h", "-q", "-something"]
1059+
assert record.commando.args == [" ".join(args)] if os.name == "nt" else args
10591060

10601061

10611062
def test_command_integration(tmp_path: pathlib.Path) -> None:

0 commit comments

Comments
 (0)