test(fixtures): specify the path for checking variables

This commit is contained in:
Orhun Parmaksız 2021-12-23 01:26:40 +03:00
parent df44a52e40
commit 297dc220ba
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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