Fix latent bug in test.

* test.py: Changed to assert a particular path in the configuration,
factoring out a latent bug where sys.exit was conditionally called
without first importing it.

Change-Id: Iaf8a029d226777f38004527802494366a89c943d
This commit is contained in:
Jeremy Stanley 2012-11-06 16:28:15 +00:00
parent b2c840a220
commit c812ce0367
1 changed files with 1 additions and 3 deletions

View File

@ -3,6 +3,4 @@ import ConfigParser
cp = ConfigParser.ConfigParser()
cp.read("planet.ini")
if cp.get('Planet', 'output_dir') != '/srv/planet/openstack':
sys.exit(1)
assert cp.get('Planet', 'output_dir') == '/srv/planet/openstack'