tests: Do not use config file in json test

Pass -c /dev/null when running tests

Fixes: e06d99df ("tests: Add trivial json formatting test")
This commit is contained in:
Michal Suchanek
2024-02-17 12:50:05 +01:00
committed by Michal Suchánek
parent 2d18c0952a
commit c297368a0e
+2 -2
View File
@@ -209,8 +209,8 @@ test-lib:: lib/test/test-scanner
cd lib/test ; ./test-scanner.pl
test-sensors:: prog/sensors/sensors
LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -J | jq -S | diff -u prog/sensors/test/data/laptop.json -
LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -J -f | jq -S | diff -u prog/sensors/test/data/laptop.f.json -
LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -c /dev/null -J | jq -S | diff -u prog/sensors/test/data/laptop.json -
LD_LIBRARY_PATH=lib SENSORS_SYSFS_ROOT=prog/sensors/test/data/laptop prog/sensors/sensors -c /dev/null -J -f | jq -S | diff -u prog/sensors/test/data/laptop.f.json -
user ::
user_install::