prometheus-node-exporter-lua: add test / skip test-version

test.sh is pretty basic and will not fail if one of the plugin fails,
which is fine as most plugins will fail in CI anyway.

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
pull/29929/head
Etienne Champetier 2026-07-04 16:59:16 -04:00
parent cc886eb990
commit 4741715d8e
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
exit 0

View File

@ -0,0 +1,14 @@
#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
prometheus-node-exporter-lua-openwrt)
# call ubus outside scape, so skip the check
exit 0
;;
*)
prometheus-node-exporter-lua | grep node_scrape_collector_success
;;
esac