mirror of
https://github.com/openwrt/routing.git
synced 2026-08-28 05:46:22 +04:00
naywatch: add test-version.sh for CI runtime tests
naywatch is a watchdog shell script which does not provide any option to report its version, so the generic version check of the CI runtime tests fails for this package. On top of that, the generic check executes each installed executable with several flags to probe for the version, which must never happen for a watchdog script that may trigger a reboot of the test environment. Providing a test-version.sh both skips the version probing of the binary and overrides the version check. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
22de2fba01
commit
361d14cb3f
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# shellcheck shell=busybox
|
||||
|
||||
case "$PKG_NAME" in
|
||||
naywatch)
|
||||
# naywatch is a watchdog shell script which does not provide any
|
||||
# option to report its version. It must not be executed during
|
||||
# the CI runtime tests, since it may trigger a reboot.
|
||||
exit 0
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Untested package: $PKG_NAME" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user