We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aebb1fa commit 44ea713Copy full SHA for 44ea713
scripts/mbedtls_framework/psa_compliance.py
@@ -13,7 +13,6 @@
13
import glob
14
import os
15
import re
16
-import shlex
17
import shutil
18
import subprocess
19
import sys
@@ -64,9 +63,9 @@ def test_compliance(library_build_dir: str,
64
63
if patch_files:
65
subprocess.check_call(['git', 'reset', '--hard'])
66
for patch_file in patch_files:
67
- abs_path = os.path.abspath(os.path.join(root_dir, patch_file))
68
- subprocess.check_call(['patch -p1 <' + shlex.quote(abs_path)],
69
- shell=True)
+ with open(os.path.join(root_dir, patch_file), 'rb') as patch:
+ subprocess.check_call(['patch', '-p1'],
+ stdin=patch)
70
71
build_dir = 'api-tests/build'
72
try:
0 commit comments