summaryrefslogtreecommitdiff
path: root/subplot.py
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-04-09 18:23:19 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-04-09 18:23:19 +0100
commit76a22e7053c8be6db3cbf1ec6cec085ba6f49898 (patch)
tree9f0b225d6d526f53a282dda9d559c1320f2f3960 /subplot.py
parent68908d369d5a8cdec182a1fa51007cdff71e68dd (diff)
downloadsubplot-76a22e7053c8be6db3cbf1ec6cec085ba6f49898.tar.gz
testing: Rework sp-{doc,code}gen into subplot {doc,code}gen in tests
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplot.py')
-rw-r--r--subplot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/subplot.py b/subplot.py
index 975b579..40678c2 100644
--- a/subplot.py
+++ b/subplot.py
@@ -4,7 +4,7 @@ import shutil
import tempfile
-# A shell script to run the sp-codegen binary from the source directory's Rust
+# A shell script to run the subplot binary from the source directory's Rust
# build target directory, adding the -t option to use the source directory's
# template directory.
#
@@ -12,7 +12,7 @@ import tempfile
wrapper = """\
#!/bin/sh
set -eu
-exec '{srcdir}/target/debug/{prog}' "$@" --resources '{srcdir}/share'
+exec '{srcdir}/target/debug/{prog}' --resources '{srcdir}/share' "$@"
"""
@@ -33,7 +33,7 @@ def install_subplot(ctx):
# Create a "bin" directory for the wrapper. Can't put this into datadir, as
# some of Subplot's scenarios make assumptions on what files exist there.
bindir = ctx["bin-dir"] = tempfile.mkdtemp()
- for prog in ["sp-codegen", "sp-docgen"]:
+ for prog in ["subplot"]:
filename = os.path.join(bindir, prog)
with open(filename, "w") as f:
f.write(wrapper.format(prog=prog, srcdir=srcdir))