diff options
author | Neil Williams <codehelp@debian.org> | 2016-01-23 17:47:07 +0000 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2016-01-23 17:47:07 +0000 |
commit | 5a4f3228332b7e9b7890c7ea6d139e513a7a06a6 (patch) | |
tree | dde8a06e6e096f74c9452f4f27fa834c75d6dcac | |
parent | a7fb7ae762dd713a8212a42587583cf1b638e80e (diff) | |
download | vmdebootstrap-5a4f3228332b7e9b7890c7ea6d139e513a7a06a6.tar.gz |
handle extlinux being true by default with a test casevmdebootstrap-1.4
-rwxr-xr-x | bin/vmdebootstrap | 2 | ||||
-rw-r--r-- | yarns/200-fast-tests.yarn | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap index 30fca9d..2971260 100755 --- a/bin/vmdebootstrap +++ b/bin/vmdebootstrap @@ -175,7 +175,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth 'requires updating the initramfs.') if self.settings['roottype'] == 'btrfs' and\ - self.settings['extlinux']: + self.settings['extlinux'] and not self.settings['grub']: raise cliapp.AppException( 'extlinux is not yet supported on btrfs. Use grub.') uefi = self.handlers[Uefi.name] diff --git a/yarns/200-fast-tests.yarn b/yarns/200-fast-tests.yarn index 803d09d..352c8ec 100644 --- a/yarns/200-fast-tests.yarn +++ b/yarns/200-fast-tests.yarn @@ -174,3 +174,17 @@ verify that vmdebootstrap parses the command line correctly. ... --image=FOO --no-systemd-networkd --no-update-initramfs --dry-run THEN vmdebootstrap exited with a non-zero exit code AND vmdebootstrap wrote an error message matching requires updating the + + SCENARIO btrfs not yet supported with extlinux + ASSUMING fast tests are requested + WHEN user attempts to run vmdebootstrap + ... --image=FOO --roottype btrfs --extlinux --dry-run + THEN vmdebootstrap exited with a non-zero exit code + AND vmdebootstrap wrote an error message matching not yet supported + + SCENARIO btrfs not yet supported without disabling extlinux + ASSUMING fast tests are requested + WHEN user attempts to run vmdebootstrap + ... --image=FOO --roottype btrfs --dry-run + THEN vmdebootstrap exited with a non-zero exit code + AND vmdebootstrap wrote an error message matching not yet supported |