Rewrite of ensure-dirs in python
I provided unittest to test the important pieces of the infrastructure. The one remaining function (ResuriveEnsure) is not easy to unittest but also not critical if it fails to operate correctly. Signed-off-by:René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
Showing
- .gitignore 1 addition, 0 deletions.gitignore
- Makefile.am 22 additions, 2 deletionsMakefile.am
- lib/tools/__init__.py 20 additions, 0 deletionslib/tools/__init__.py
- lib/tools/ensure_dirs.py 252 additions, 0 deletionslib/tools/ensure_dirs.py
- test/ganeti.tools.ensure_dirs_unittest.py 143 additions, 0 deletionstest/ganeti.tools.ensure_dirs_unittest.py
Loading
Please register or sign in to comment