diff options
Diffstat (limited to 'tests/check.sh')
| -rwxr-xr-x | tests/check.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/check.sh b/tests/check.sh index 99add68..85d19e5 100755 --- a/tests/check.sh +++ b/tests/check.sh @@ -27,7 +27,7 @@ done < <(find git/hooks -type f -name 'post-receive' | sort) echo "" echo "=== Python 構文 ===" -for f in hetzner-admin/app.py mail/dns/setup-route53.py; do +for f in hetzner-admin/app.py mail/dns/setup-route53.py status/app.py; do if python3 -m py_compile "$f" 2>/dev/null; then ok "$f" else @@ -67,7 +67,7 @@ while IFS=: read -r user repo; do done < claude/sessions.txt echo "" -echo "=== hetzner-admin: app.py の COMMANDS が run-command.sh で許可されているか ===" +echo "=== hetzner-admin: app.py の COMMANDS / STATUS_COMMAND が run-command.sh で許可されているか ===" while IFS= read -r cmd; do if grep -qF "\"$cmd\")" hetzner-admin/run-command.sh; then ok "$cmd" @@ -81,6 +81,8 @@ for node in ast.walk(tree): if isinstance(node, ast.Assign) and getattr(node.targets[0], "id", "") == "COMMANDS": for elt in node.value.elts: print(elt.elts[1].value) + if isinstance(node, ast.Assign) and getattr(node.targets[0], "id", "") == "STATUS_COMMAND": + print(node.value.value) EOF ) |
