-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
. ./d_function_test | ||
|
||
RESULT=0 | ||
|
||
asserted_output="\ | ||
--WARNING--- AC Power Recommended ------------- | ||
Runnning on battery power detected | ||
It is recommended to connect the system to AC power during the install | ||
Press key to continue | ||
[cenity][][] --warning --no-wrap --title=AC Power Recommended --text=Runnning on battery power detected\n\nIt is recommended to connect the system to AC power during the install" | ||
output=$(c_test --warning --no-wrap --title="AC Power Recommended" --text="Runnning on battery power detected\n\nIt is recommended to connect the system to AC power during the install" <<< "\n" 2>&1) | ||
compare "$output" "$asserted_output" | ||
|
||
|
||
# TODO: handle icons | ||
|
||
# c_test --width=600 --warning --icon=security-low-symbolic --text="${postamble}" | ||
|
||
# c_test --width=600 --warning --icon=security-medium-symbolic --text="${preamble}\n\nReason: ${reason}\n\n${postamble}" | ||
|
||
check_result |