Unit tests create logging folders in CWD

Bug #1634296 reported by Charles Neill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
syntribos
Fix Released
Medium
Charles Neill

Bug Description

Running syntribos' unit tests (e.g. with tox or nose), specifically test_runner.py, will result in a folder being created in CWD and not being cleaned up at the end of the test run. This is due to a call to "get_log_dir_name", which creates a logfile directory based on the current timestamp if it doesn't already exist [1].

Will try to clean this up in my syntribos init patch.

[1]: https://github.com/openstack/syntribos/blob/aa50d7b7d003f4a2c11d03431abe411aaaffc4fe/syntribos/runner.py#L107

Changed in syntribos:
importance: Undecided → Medium
assignee: nobody → Charles Neill (charles-neill)
description: updated
Changed in syntribos:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to syntribos (master)

Reviewed: https://review.openstack.org/388962
Committed: https://git.openstack.org/cgit/openstack/syntribos/commit/?id=18781c37cdd0c0ce37eb2cb2fe7ba6fa213844c9
Submitter: Jenkins
Branch: master

commit 18781c37cdd0c0ce37eb2cb2fe7ba6fa213844c9
Author: Charles Neill <email address hidden>
Date: Wed Oct 19 21:06:55 2016 -0500

    Add additional runner and env utils tests

    Adds several tests to exercise more of runner and the env utils.

    Makes several modifications to config.py, runner.py, and utils/env.py,
    with the aim of making them more testable.

    Change-Id: I708df9e5315f3dadd028c8107ac6416c707e90a0
    Closes-Bug: #1634296

Changed in syntribos:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/syntribos 0.3.0

This issue was fixed in the openstack/syntribos 0.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.