Skip to content

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

Merged
KaiChuan-Hsieh merged 1 commit intocanonical:mainfrom
medicalwei:pc-sanity-sideload-hook-no-fail
Aug 22, 2024
Merged

pc-sanity: add unit miscellanea/sideload-hook-no-fail (New)#1394
KaiChuan-Hsieh merged 1 commit intocanonical:mainfrom
medicalwei:pc-sanity-sideload-hook-no-fail

Conversation

@medicalwei
Copy link
Copy Markdown
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
Copy Markdown
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
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