summaryrefslogtreecommitdiff
path: root/tests/tools/run-bindgen.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tools/run-bindgen.py')
-rwxr-xr-xtests/tools/run-bindgen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tools/run-bindgen.py b/tests/tools/run-bindgen.py
index aad210da..519e6891 100755
--- a/tests/tools/run-bindgen.py
+++ b/tests/tools/run-bindgen.py
@@ -8,6 +8,7 @@ import os
import sys
import subprocess
import tempfile
+import shlex
BINDGEN_FLAGS_PREFIX = "// bindgen-flags: "
@@ -94,7 +95,7 @@ def get_bindgen_flags(header_path):
with open(header_path) as f:
for line in f:
if line.startswith(BINDGEN_FLAGS_PREFIX):
- flags.extend(line.strip().split(BINDGEN_FLAGS_PREFIX)[1].split(" "))
+ flags.extend(shlex.split(line.strip().split(BINDGEN_FLAGS_PREFIX)[1]))
break
return flags