summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2016-03-13 15:10:46 +0000
committerNeil Williams <codehelp@debian.org>2016-03-13 15:18:16 +0000
commit748bbd7ca24d3f54ab410fa18a39301a4afa8900 (patch)
tree3c8906696256f6545a123fa27e9e1c17bdb6285c /yarns
parent33b3f0eb04201214f7a653db329f7ec23e1c1973 (diff)
downloadvmdebootstrap-748bbd7ca24d3f54ab410fa18a39301a4afa8900.tar.gz
Fail if the size is too small for a bootstrap
Catch typos in the size option which would cause images which are much too small for a bootstrap to be created. Bug: #811464
Diffstat (limited to 'yarns')
-rw-r--r--yarns/200-fast-tests.yarn8
1 files changed, 4 insertions, 4 deletions
diff --git a/yarns/200-fast-tests.yarn b/yarns/200-fast-tests.yarn
index 352c8ec..dc6ddf8 100644
--- a/yarns/200-fast-tests.yarn
+++ b/yarns/200-fast-tests.yarn
@@ -48,13 +48,13 @@ verify that vmdebootstrap parses the command line correctly.
AND vmdebootstrap wrote an error message matching disk image filename
AND vmdebootstrap wrote an error message matching squash
- SCENARIO --image used with a zero size
+ SCENARIO --size too small for a bootstrap
ASSUMING fast tests are requested
WHEN user attempts to run vmdebootstrap
- ... --image=FOO --size=0 --dry-run
+ ... --image=FOO --size=100M --dry-run
THEN vmdebootstrap exited with a non-zero exit code
- AND vmdebootstrap wrote an error message matching disk image
- AND vmdebootstrap wrote an error message matching must
+ AND vmdebootstrap wrote an error message matching too small
+ AND vmdebootstrap wrote an error message matching bootstrap
SCENARIO Debian distribution stable name check
ASSUMING fast tests are requested