From: W. Trevor King Date: Fri, 8 Mar 2013 19:17:56 +0000 (-0500) Subject: swc-installation-test-2.py: Raise an error on empty version stream X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8d8a62edd075bf06933e9a74d9715d6acb8694a6;p=swc-workshop.git swc-installation-test-2.py: Raise an error on empty version stream This makes the upcoming mult-path checking easier to implement. --- diff --git a/setup/swc-installation-test-2.py b/setup/swc-installation-test-2.py index 6da7ce7..ded36f6 100755 --- a/setup/swc-installation-test-2.py +++ b/setup/swc-installation-test-2.py @@ -438,6 +438,11 @@ class CommandDependency (Dependency): raise DependencyError(checker=self, message='\n'.join(lines)) for name,string in [('stdout', stdout), ('stderr', stderr)]: if name == self.version_stream: + if not string: + raise DependencyError( + checker=self, + message='empty version stream on {0} for {1}'.format( + self.version_stream, command)) return string raise NotImplementedError(self.version_stream)