Skip to content

Commit

Permalink
tests: Do not use config file in json test
Browse files Browse the repository at this point in the history
Pass -c /dev/null when running tests

Fixes: e06d99d ("tests: Add trivial json formatting test")
  • Loading branch information
hramrach committed Feb 17, 2024
1 parent b3a13f5 commit a81c333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit a81c333

Please sign in to comment.