Browse Source

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
changes/09/15509/1
Jeremy Stanley 9 years ago
parent
commit
c812ce0367
  1. 4
      test.py

4
test.py

@ -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'
Loading…
Cancel
Save