tox: fix "test command found but not installed in testenv" warning

Determine architecture from python instead of using sh and uname
This commit is contained in:
link2xt
2021-05-23 18:40:40 +03:00
parent 7e3bfd38f0
commit 2a83147d90
2 changed files with 5 additions and 4 deletions

View File

@@ -1,13 +1,14 @@
import os
import sys
import platform
import subprocess
import sys
if __name__ == "__main__":
assert len(sys.argv) == 3
assert len(sys.argv) == 2
workspacedir = sys.argv[1]
arch = sys.argv[2]
arch = platform.machine()
for relpath in os.listdir(workspacedir):
if relpath.startswith("deltachat"):
p = os.path.join(workspacedir, relpath)