tests: Use /bin/cat as target on most platforms

This commit is contained in:
Ole André Vadla Ravnås
2022-04-26 09:03:51 +02:00
parent e23b8475d5
commit 608ecc4e9b
7 changed files with 1 additions and 9 deletions
+1 -9
View File
@@ -2,7 +2,6 @@
import os
import platform
import sys
system = platform.system()
@@ -11,14 +10,7 @@ if system == 'Windows':
elif system == 'Darwin':
target_program = os.path.join(os.path.dirname(__file__), "unixvictim-macos")
else:
machine = platform.machine()
if machine == 'aarch64':
arch = 'arm64'
elif machine.startswith('arm'):
arch = 'armhf'
else:
arch = 'x86_64' if sys.maxsize > 2**32 else 'x86'
target_program = os.path.join(os.path.dirname(__file__), "unixvictim-" + system.lower() + "-" + arch)
target_program = "/bin/cat"
__all__ = ['target_program']
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.