~ubuntu-branches/ubuntu/raring/swift/raring-security

« back to all changes in this revision

Viewing changes to test/probe/test_running_with_each_type_down.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-04-10 09:23:54 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20120410092354-5z06qt1jal4wtoxf
Tags: 1.4.8-0ubuntu1
* New upstream release.
* debian/patches/fix-ubuntu-unittests.patch: Refreshed. 
* debian/patches/fix-doc-no-network.patch: Dont access network when
  trying to build docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python -u
2
 
# Copyright (c) 2010-2011 OpenStack, LLC.
 
2
# Copyright (c) 2010-2012 OpenStack, LLC.
3
3
#
4
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
5
# you may not use this file except in compliance with the License.
15
15
# limitations under the License.
16
16
 
17
17
import unittest
 
18
from nose import SkipTest
18
19
from os import kill
19
20
from signal import SIGTERM
20
21
from subprocess import Popen
28
29
class TestRunningWithEachTypeDown(unittest.TestCase):
29
30
 
30
31
    def setUp(self):
31
 
        self.pids, self.port2server, self.account_ring, self.container_ring, \
32
 
            self.object_ring, self.url, self.token, self.account = \
33
 
                reset_environment()
 
32
        try:
 
33
            self.pids, self.port2server, self.account_ring, self.container_ring, \
 
34
                self.object_ring, self.url, self.token, self.account = \
 
35
                    reset_environment()
 
36
        except:
 
37
            raise SkipTest
34
38
 
35
39
    def tearDown(self):
36
40
        kill_pids(self.pids)