mirror of
https://github.com/orhun/systeroid
synced 2024-10-01 13:13:32 +00:00
test(fixtures): specify the path for checking variables
This commit is contained in:
parent
df44a52e40
commit
297dc220ba
|
@ -1,10 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
while IFS='=' read -r variable value; do
|
||||
if [[ -n "$value" ]]; then
|
||||
echo "[+] $variable=$value"
|
||||
test "$(sysctl -b ${variable/ /})" = "${value/ /}"
|
||||
fi
|
||||
done < "sysctl.conf"
|
||||
done < "$1"
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -110,7 +110,7 @@ jobs:
|
|||
--features live-tests \
|
||||
--out Xml --verbose \
|
||||
-- "test_systeroid"
|
||||
./.github/fixtures/test.sh
|
||||
./.github/fixtures/check_vars.sh systeroid/sysctl.conf
|
||||
mv cobertura.xml live-test-output.xml
|
||||
|
||||
- name: Upload reports to codecov
|
||||
|
|
Loading…
Reference in a new issue