From 8d8a62edd075bf06933e9a74d9715d6acb8694a6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 8 Mar 2013 14:17:56 -0500 Subject: [PATCH] swc-installation-test-2.py: Raise an error on empty version stream This makes the upcoming mult-path checking easier to implement. --- setup/swc-installation-test-2.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.26.2