Skip to content

Commit

Permalink
swc-installation-test-2.py: Raise an error on empty version stream
Browse files Browse the repository at this point in the history
This makes the upcoming mult-path checking easier to implement.
  • Loading branch information
W. Trevor King committed Mar 8, 2013
1 parent 1ba97b9 commit 8d8a62e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup/swc-installation-test-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ def _get_version_stream(self, stdin=None, expect=(0,)):
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)

Expand Down

0 comments on commit 8d8a62e

Please sign in to comment.