Browse Source

HUE-8291 [oozie] Prevent test failure when deleting HDFS path prefix

Romain Rigaux 7 years ago
parent
commit
57fe80839b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      desktop/libs/liboozie/src/liboozie/submittion_tests.py

+ 2 - 2
desktop/libs/liboozie/src/liboozie/submittion_tests.py

@@ -47,7 +47,7 @@ def test_copy_files():
     prefix = '/tmp/test_copy_files'
 
     if cluster.fs.exists(prefix):
-      cluster.fs.rmtree(prefix)
+      cluster.fs.rmtree(prefix, skip_trash=True) # admin user might not have a home directory
 
     # Jars in various locations
     deployment_dir = '%s/workspace' % prefix
@@ -121,7 +121,7 @@ def test_copy_files():
 
   finally:
     try:
-      cluster.fs.rmtree(prefix)
+      cluster.fs.rmtree(prefix, skip_trash=True)
     except:
       LOG.exception('failed to remove %s' % prefix)