]> git.proxmox.com Git - mirror_ovs.git/commit
tests-windows: Make flow extractor work on Windows
authorAlin Gabriel Serdean <aserdean@ovn.org>
Thu, 8 Mar 2018 00:24:19 +0000 (02:24 +0200)
committerAlin Gabriel Serdean <aserdean@ovn.org>
Thu, 8 Mar 2018 00:59:02 +0000 (02:59 +0200)
commitc2104b9bcd655bb39b99295ef8ba59152dba2a04
treede54305848286d247f059ffc3b301e766bd1baec
parent7954d04a898c040e0e4e2f21b38b0a3b03f68190
tests-windows: Make flow extractor work on Windows

+Traceback (most recent call last):
+  File "../.././flowgen.py", line 204, in <module>
+    flows = os.fdopen(3, 'wb')
+OSError: [Errno 9] Bad file descriptor
./library.at:4: exit code was 1, expected 0

Unfortunately 3/4/5/.. FDs don't work on Windows. Switch to a filename open
instead of opening the FDs.

Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
tests/flowgen.py
tests/library.at