Opened 5 years ago

Closed 5 years ago

#7284 closed defect (fixed)

Running tests will multiple targets makes test.integ.process tests fail

Reported by: neena Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Keywords:
Cc: atagar Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Running run_tests.py with "-it RUN_OPEN,RUN_SOCKET" or "-it RUN_ALL" makes the test.integ.process tests fail.

test_launch_tor_with_config                                  [FAILURE]
test_launch_tor_with_timeout                                 [FAILURE]

======================================================================
ERROR: test_launch_tor_with_config
----------------------------------------------------------------------
Traceback:
  File "/home/neena/code/stem/test/integ/process.py", line 21, in setUp
    os.makedirs(DATA_DIRECTORY)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/tmp/stem_integ'

======================================================================
ERROR: test_launch_tor_with_timeout
----------------------------------------------------------------------
Traceback:
  File "/home/neena/code/stem/test/integ/process.py", line 21, in setUp
    os.makedirs(DATA_DIRECTORY)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/tmp/stem_integ'

----------------------------------------------------------------------
Ran 2 tests in 0.019s

FAILED

It looks like a problem with the test cleanup. I haven't really looked at the (related) code.

Child Tickets

Change History (1)

comment:1 Changed 5 years ago by atagar

Resolution: fixed
Status: newclosed

Thanks for the catch! This turned out to be a slightly different issue...

https://gitweb.torproject.org/stem.git/commitdiff/c58514337ec02d17260c9468ba17b1a15f959c82

Note: See TracTickets for help on using tickets.