Branch: refs/heads/master
Home: https://github.com/openSUSE/osc2
Commit: df6ce264b7a9245fc93756b7b4bb38a61684b88b
https://github.com/openSUSE/osc2/commit/df6ce264b7a9245fc93756b7b4bb38a61684...
Author: Marcus Huewe
Date: 2014-12-17 (Wed, 17 Dec 2014)
Changed paths:
A test/util/test_io.py
Log Message:
-----------
- test.util.test_io: added testcases for the TemporaryDirectory class
Commit: 300f96d97d3ddb3f088080a08dd85553396f9379
https://github.com/openSUSE/osc2/commit/300f96d97d3ddb3f088080a08dd85553396f...
Author: Marcus Huewe
Date: 2014-12-17 (Wed, 17 Dec 2014)
Changed paths:
M test/suite.py
Log Message:
-----------
- test.suite: added test.util.test_io module to the testsuite
Commit: b6d0f29ad83debbf1f1d883f393f591076f753f2
https://github.com/openSUSE/osc2/commit/b6d0f29ad83debbf1f1d883f393f591076f7...
Author: Marcus Huewe
Date: 2014-12-17 (Wed, 17 Dec 2014)
Changed paths:
M osc2/util/io.py
Log Message:
-----------
- util.io: added TemporaryDirectory class
The TemporaryDirectory class is inspired by lnussel's mytmpdir
class in osc's (osc1) build.py module.
An instance of this class represents a temporary directory in
the filesystem.
The temporary directory is created lazily. Once an instance of this
class is destroyed, the corresponding temporary directory is removed
as well (unless delete=False was passed to the __init__ method).
Moreover, an instance of this class can be used as a
context manager (__exit__ deletes the temporary directory, unless
delete=False was passed to the __init__ method).
Compare: https://github.com/openSUSE/osc2/compare/f19591fb99f1...b6d0f29ad83d