diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-14 00:08:03 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-14 00:08:03 -0500 |
| commit | 269f23a38789190d112b04e8e70c3a6d649193b1 (patch) | |
| tree | 934e9a5bfb0e97d690e672cb2e098316543d68f6 /scripts/theme-studio/run-tests.sh | |
| parent | 6c0d305687ef5b96928cdc7578e712a9dd0a2d8c (diff) | |
| download | dotemacs-269f23a38789190d112b04e8e70c3a6d649193b1.tar.gz dotemacs-269f23a38789190d112b04e8e70c3a6d649193b1.zip | |
Update theme studio palette workflow
Diffstat (limited to 'scripts/theme-studio/run-tests.sh')
| -rwxr-xr-x | scripts/theme-studio/run-tests.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/theme-studio/run-tests.sh b/scripts/theme-studio/run-tests.sh index 4c4a5cde3..95a3dde68 100755 --- a/scripts/theme-studio/run-tests.sh +++ b/scripts/theme-studio/run-tests.sh @@ -44,8 +44,10 @@ else fail_msg "Node unit tests"; grep -E 'not ok|AssertionError|Error' /tmp/ts-n # 4. Syntax-check the inlined page script. python3 - <<'PY' && node --check /tmp/ts-script.js >/dev/null 2>&1 && pass_msg "spliced page <script> parses" || fail_msg "spliced page <script> syntax" import re -h = open('theme-studio.html').read() -open('/tmp/ts-script.js', 'w').write(re.search(r'<script>(.*)</script>', h, re.S).group(1)) +with open('theme-studio.html') as src: + h = src.read() +with open('/tmp/ts-script.js', 'w') as out: + out.write(re.search(r'<script>(.*)</script>', h, re.S).group(1)) PY # 5. Browser hash gates. |
