]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
If the version file is empty, complain. 422/head
authorZack Cerza <zack@redhat.com>
Thu, 29 Jan 2015 16:52:24 +0000 (09:52 -0700)
committerZack Cerza <zack@redhat.com>
Thu, 29 Jan 2015 18:41:33 +0000 (11:41 -0700)
We *could* work around this, but I don't want to mask bugs in the build
system.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/kernel.py

index c166f3b01a0b0caf338791c06d7afc30b0fa0afa..9a7b1bbad9177278132ea156bd359b17c73ab937 100644 (file)
@@ -13,7 +13,9 @@ import urlparse
 from teuthology import misc as teuthology
 from ..orchestra import run
 from ..config import config as teuth_config
-from ..exceptions import UnsupportedPackageTypeError, ConfigError
+from ..exceptions import (UnsupportedPackageTypeError,
+                          ConfigError,
+                          VersionNotFoundError)
 from ..packaging import (
     install_package,
     get_koji_build_info,
@@ -1111,6 +1113,10 @@ def task(ctx, config):
                     log.debug('failed to get utsrelease string using url {url}'.format(
                               url=version_url))
 
+                if not version:
+                    raise VersionNotFoundError("{url} is empty!".format(
+                        url=version_url))
+
                 need_install[role] = sha1
                 need_version[role] = version