aboutsummaryrefslogtreecommitdiffstats
path: root/test.sh
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-25 10:14:17 +0100
committerMattias Andrée <maandree@kth.se>2021-03-25 10:14:17 +0100
commit2b074564916dddcde22542dcb4b47ae224ae9730 (patch)
tree006c955a40fff4a6e61109e953e52ea851faa61d /test.sh
parentRemove video group membership check and use file permissions and ownership instead (diff)
downloadadjbacklight-2b074564916dddcde22542dcb4b47ae224ae9730.tar.gz
adjbacklight-2b074564916dddcde22542dcb4b47ae224ae9730.tar.bz2
adjbacklight-2b074564916dddcde22542dcb4b47ae224ae9730.tar.xz
Use the first backlight device instead of acpi_video
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/test.sh b/test.sh
index dd4cd06..51705d9 100755
--- a/test.sh
+++ b/test.sh
@@ -41,13 +41,13 @@ test $(./test -ga) = 40.00%
./test -s +20% dev
test $(./test -ga) = 60.00%
-mkdir .testdir/acpi_videox
-printf '%i\n' 50 > .testdir/acpi_videox/max_brightness
-printf '%i\n' 25 > .testdir/acpi_videox/brightness
+mkdir .testdir/acpi_video
+printf '%i\n' 50 > .testdir/acpi_video/max_brightness
+printf '%i\n' 25 > .testdir/acpi_video/brightness
-test $(./test -g) = 50.00%
+test $(./test -g acpi_video) = 50.00%
-rm -r .testdir/acpi_videox
+rm -r .testdir/acpi_video
printf '%s\n' 5 +15 -5 +20% | ./test dev
test $(./test -g dev) = 50.00%