Skip to content
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

pc-sanity: add unit miscellanea/sideload-hook-no-fail (New) #1394

Merged

Conversation

medicalwei
Copy link
Contributor

@medicalwei medicalwei commented Aug 7, 2024

Description

This tests 24.04 OEM images which has sideload/hook.sh run during installation and early-OOBE. When a failure in the hook script occurs, it leaves # FAILED: [command] in the log.

Resolved issues

Fixes: SOMERVILLE-245

Tests

The test was done by running the test unit in a normally installed 24.04 OEM system, and the following cases has been tested.

  • Changed nothing in the /var/log/installer/sideload-hook.sh.*.log, run the test, passed.
  • Changed /var/log/installer/sideload-hook.sh.early-welcome.log and added
    # FAILED: something failed
    in the bottom, successfully failed.
  • Remove all files in /var/log/installer/sideload-hook.sh.*.log, run the test, passed with message
    grep: /var/log/installer/sideload-hook.sh.*.log: No such file or directory
    since there's no log to check with.

This tests 24.04 OEM images which has sideload/hook.sh run during
installation and early-OOBE.  When a failure in the hook script
occurs, it leaves "# FAILED: [command]" in the log.

The unit is added into pc-sanity-base and pc-sanity-software-test.
@medicalwei medicalwei requested a review from a team as a code owner August 7, 2024 02:20
Copy link
Contributor

@KaiChuan-Hsieh KaiChuan-Hsieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KaiChuan-Hsieh KaiChuan-Hsieh merged commit 20dc017 into canonical:main Aug 22, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants