mirror of https://github.com/openwrt/packages.git
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
parent
cc886eb990
commit
4741715d8e
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exit 0
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue