summaryrefslogtreecommitdiff
path: root/scripts/update_lit_checks.py
diff options
context:
space:
mode:
authorAlexander Guryanov <caiiiycuk@gmail.com>2023-11-02 18:24:12 +0300
committerGitHub <noreply@github.com>2023-11-02 08:24:12 -0700
commit34cbf0045c94359937505c2a2d55a1224fa0d9bb (patch)
tree02dda3c3d629092c54e3b3c6ccf1fd987f0a1248 /scripts/update_lit_checks.py
parentf1d5b26ff1346a549e8413af6060175f32f381b1 (diff)
downloadbinaryen-34cbf0045c94359937505c2a2d55a1224fa0d9bb.tar.gz
binaryen-34cbf0045c94359937505c2a2d55a1224fa0d9bb.tar.bz2
binaryen-34cbf0045c94359937505c2a2d55a1224fa0d9bb.zip
Support '%S' placeholder in update_lit_checks.py (#6075)
Diffstat (limited to 'scripts/update_lit_checks.py')
-rwxr-xr-xscripts/update_lit_checks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/update_lit_checks.py b/scripts/update_lit_checks.py
index 1e7274c51..ef1dc6aae 100755
--- a/scripts/update_lit_checks.py
+++ b/scripts/update_lit_checks.py
@@ -94,6 +94,7 @@ def run_command(args, test, tmp, command):
env = dict(os.environ)
env['PATH'] = args.binaryen_bin + os.pathsep + env['PATH']
command = command.replace('%s', test)
+ command = command.replace('%S', os.path.dirname(test))
command = command.replace('%t', tmp)
command = command.replace('foreach', os.path.join(script_dir, 'foreach.py'))
return subprocess.check_output(command, shell=True, env=env).decode('utf-8')