mirror of
https://github.com/openwrt/packages.git
synced 2026-12-05 02:25:51 +04:00
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>
This commit is contained in:
1 parent
cc886eb990
commit
4741715d8e
2 files changed
+17
No files matched your search
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
exit 0
|
||||
Executable
+14
@@ -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
|
||||
Reference in new issue
Block a user