Commit 6acf55368a94e6ce5537b1f7018f26d2a499298a
1 parent
fcd3dbe1
Correct deletion of temporary directory
Showing
2 changed files
with
2 additions
and
2 deletions
test/test_python_cscripts.py
| @@ -190,7 +190,7 @@ def test(installed=False, debug=False): | @@ -190,7 +190,7 @@ def test(installed=False, debug=False): | ||
| 190 | 190 | ||
| 191 | # Remove temporary direction | 191 | # Remove temporary direction |
| 192 | if installed: | 192 | if installed: |
| 193 | - os.system('rm -f %s' % (path)) | 193 | + os.system('rm -rf %s' % (path)) |
| 194 | 194 | ||
| 195 | # Exit with return code | 195 | # Exit with return code |
| 196 | sys.exit(rc) | 196 | sys.exit(rc) |
test/test_python_ctools.py
| @@ -160,7 +160,7 @@ def test(installed=False): | @@ -160,7 +160,7 @@ def test(installed=False): | ||
| 160 | 160 | ||
| 161 | # Remove temporary direction | 161 | # Remove temporary direction |
| 162 | if installed: | 162 | if installed: |
| 163 | - os.system('rm -f %s' % (path)) | 163 | + os.system('rm -rf %s' % (path)) |
| 164 | 164 | ||
| 165 | # Exit with return code | 165 | # Exit with return code |
| 166 | sys.exit(rc) | 166 | sys.exit(rc) |