summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2010-08-20 01:24:59 +0000
committerTarmac <>2010-08-20 01:24:59 +0000
commitcfe3b2a6dd73e56652f99a573c1bb0abe5a648d4 (patch)
treee2d169de490742905798f87c47202b59c3c6e0d7 /nova/tests
parent49ef2b293429c9f9b3d7444402e3f7d3d0570d48 (diff)
parente5a448a616173cd391aaf458f5e0e5ff94a42c89 (diff)
Check exit codes when spawning processes by default
Also pass --fail to curl so that it sets exit code when download fails
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/network_unittest.py1
-rw-r--r--nova/tests/process_unittest.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/nova/tests/network_unittest.py b/nova/tests/network_unittest.py
index 993bfacc2..34b68f1ed 100644
--- a/nova/tests/network_unittest.py
+++ b/nova/tests/network_unittest.py
@@ -166,7 +166,6 @@ class NetworkTestCase(test.TrialTestCase):
release_ip(mac3, address3, hostname, net.bridge_name)
net = model.get_project_network(self.projects[0].id, "default")
self.service.deallocate_fixed_ip(firstaddress)
- release_ip(mac, firstaddress, hostname, net.bridge_name)
def test_vpn_ip_and_port_looks_valid(self):
"""Ensure the vpn ip and port are reasonable"""
diff --git a/nova/tests/process_unittest.py b/nova/tests/process_unittest.py
index 75187e1fc..25c60c616 100644
--- a/nova/tests/process_unittest.py
+++ b/nova/tests/process_unittest.py
@@ -48,7 +48,7 @@ class ProcessTestCase(test.TrialTestCase):
def test_execute_stderr(self):
pool = process.ProcessPool(2)
- d = pool.simple_execute('cat BAD_FILE', error_ok=1)
+ d = pool.simple_execute('cat BAD_FILE', check_exit_code=False)
def _check(rv):
self.assertEqual(rv[0], '')
self.assert_('No such file' in rv[1])