-
Notifications
You must be signed in to change notification settings - Fork 17
Reboot_Health_ Check: Add run script, service file & README #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Reboot_Health_ Check: Add run script, service file & README #73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove duplicate commits. Also you have to provide a sign off, refer guidelines https://github.com/qualcomm-linux/qcom-linux-testkit/blob/main/CONTRIBUTING.md
abf69c6
to
c3f0ec1
Compare
Runner/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/run.sh
Outdated
Show resolved
Hide resolved
567e8ce
to
61d36ff
Compare
… file and readme Added Reboot Health Check test script, service file, and README to automate system reboot validation and ensure post-reboot stability. Signed-off-by: Sai-teja573 <122cs0573@nitrkl.ac.in>
61d36ff
to
1abb6ae
Compare
Runner/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/reboot-health.service
Show resolved
Hide resolved
Runner/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/reboot_health_check.sh
Show resolved
Hide resolved
@@ -41,7 +47,9 @@ log_info "=== Test Initialization ===" | |||
|
|||
# Directory for health check files | |||
HEALTH_DIR="/var/reboot_health" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove var
RETRY_FILE="$HEALTH_DIR/reboot_retry_count" | ||
MARKER_FILE="/var/reboot_marker" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove /var/ and handle using current directory
@@ -41,7 +47,9 @@ log_info "=== Test Initialization ===" | |||
|
|||
# Directory for health check files | |||
HEALTH_DIR="/var/reboot_health" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove /var/
Reboot Health Check - Validation Feature
This PR introduces a new reboot validation feature under the Kernel Functional Area. The objective of this test is to verify if the system successfully reboots, enters the root shell, and maintains health integrity using marker and retry logic.
What’s Added
File Description
run.sh Main script to trigger and validate reboot health status
reboot_health_check.sh Executable health checker script placed in /var/common/
reboot-health.service systemd service placed in /etc/systemd/system/
README.md Complete test explanation and run instructions
Paths Used
Component Path
Health Check Script /var/common/reboot_health_check.sh
Service File /etc/systemd/system/reboot-health.service
Log Folder /var/reboot_health/reboot_test.log, /var/reboot_marker
Validation Done
Tested the full reboot cycle with auto-retry.
Logs validated at each stage.
systemd service enabled and verified on reboot.
Notes
Appends logs on each test run.
Marker file auto-cleared post successful reboot.