From 943144cd12d5c2dfd12249f254eed528bcdf3e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Mon, 30 Jun 2014 09:25:00 +0200 Subject: [PATCH] test.sh: fix fake acpi for -t --- test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 1e8ed86..71e3447 100755 --- a/test.sh +++ b/test.sh @@ -108,7 +108,13 @@ nproc() acpi() { echo "fake acpi $@" 1>&2 - echo 'Battery 0: Discharging, 55%, 01:39:34 remaining' + if [[ "x$1" == --battery ]]; then + echo 'Battery 0: Discharging, 55%, 01:39:34 remaining' + elif [[ "x$1" == -t ]]; then + echo 'Thermal 0: ok, 36.0 degrees C' + else + return 1 + fi }