Merge pull request #1006 from mwhudson/lp-1936248

fix "make check" on uefi systems
This commit is contained in:
Michael Hudson-Doyle 2021-07-15 13:18:46 +12:00 committed by GitHub
commit 545d77eeab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ for answers in examples/answers*.yaml; do
opts='--serial'
fi
# The --foreground is important to avoid subiquity getting SIGTTOU-ed.
timeout --foreground 60 sh -c "LANG=C.UTF-8 python3 -m subiquity.cmd.tui --answers $answers --dry-run --snaps-from-examples --machine-config $config $opts" < $tty
timeout --foreground 60 sh -c "LANG=C.UTF-8 python3 -m subiquity.cmd.tui --bootloader uefi --answers $answers --dry-run --snaps-from-examples --machine-config $config $opts" < $tty
validate
grep -q 'finish: subiquity/Install/install/postinstall/run_unattended_upgrades: SUCCESS: downloading and installing security updates' .subiquity/subiquity-server-debug.log
done

View File

@ -19,7 +19,7 @@ class StorageChecker:
assert action['device'] in self.actions
assert 'ptable' in self.actions[action['device']]
if action.get('flag') in ('boot', 'bios_grub', 'prep'):
assert self.actions[action['device']]['type'] == 'disk'
assert self.actions[action['device']]['type'] in ('disk', 'raid')
def _check_format(self, action):
assert 'volume' in action