Started first tests for acpi command
parent
a4824cc8c8
commit
812f49e457
|
|
@ -80,7 +80,7 @@ function setup_acpi {
|
|||
percent="$1"
|
||||
|
||||
function acpi {
|
||||
echo "-InternalBattery-0 (id=12345) ""${percent}""; discharging; 16:00 remaining present: true"
|
||||
printf "Battery 0: Charging, %s, 01:02:48 until charged" "${percent}"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -102,15 +102,6 @@ function setup_acpi {
|
|||
assert_output "98"
|
||||
}
|
||||
|
||||
@test 'plugins battery: battery-percentage with acpi, 98.5%' {
|
||||
setup_command_exists "acpi"
|
||||
|
||||
setup_acpi "98.5%"
|
||||
|
||||
run battery_percentage
|
||||
assert_output "98"
|
||||
}
|
||||
|
||||
@test 'plugins battery: battery-percentage with acpi, 4%' {
|
||||
setup_command_exists "acpi"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue