diff --git a/test/test_python_cscripts.py b/test/test_python_cscripts.py index 71c890f..bd8d68c 100755 --- a/test/test_python_cscripts.py +++ b/test/test_python_cscripts.py @@ -190,7 +190,7 @@ def test(installed=False, debug=False): # Remove temporary direction if installed: - os.system('rm -f %s' % (path)) + os.system('rm -rf %s' % (path)) # Exit with return code sys.exit(rc) diff --git a/test/test_python_ctools.py b/test/test_python_ctools.py index 6633e2b..92d6291 100755 --- a/test/test_python_ctools.py +++ b/test/test_python_ctools.py @@ -160,7 +160,7 @@ def test(installed=False): # Remove temporary direction if installed: - os.system('rm -f %s' % (path)) + os.system('rm -rf %s' % (path)) # Exit with return code sys.exit(rc)