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:
4
test.py
4
test.py
@@ -3,6 +3,4 @@ import ConfigParser
|
|||||||
cp = ConfigParser.ConfigParser()
|
cp = ConfigParser.ConfigParser()
|
||||||
cp.read("planet.ini")
|
cp.read("planet.ini")
|
||||||
|
|
||||||
if cp.get('Planet', 'output_dir') != '/srv/planet/openstack':
|
assert cp.get('Planet', 'output_dir') == '/srv/planet/openstack'
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user