File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ def get_hostname():
636
636
637
637
def check_file_ownership (file_path , owner_name ):
638
638
"""Return True if at 'file_path' exists, is owned by
639
- 'owner_name' and is a is a file
639
+ 'owner_name' and is a file
640
640
"""
641
641
owner_uid = pwd .getpwnam (owner_name )
642
642
try :
Original file line number Diff line number Diff line change 3
3
import shutil
4
4
import tempfile
5
5
import pwd
6
- from os import stat
7
6
8
7
import osgtest .library .core as core
9
8
import osgtest .library .files as files
@@ -49,6 +48,7 @@ def test_02_xrootd_multiuser(self):
49
48
if core .config ['xrootd.multiuser' ] == "ON" :
50
49
file_path = os .path .join (temp_dir , 'copied_file.txt' )
51
50
result_perm = core .check_file_ownership (file_path , core .options .username )
51
+ shutil .rmtree (temp_dir )
52
52
self .assertEqual (result_perm , True )
53
53
54
54
def test_03_xrdcp_server_to_local (self ):
You can’t perform that action at this time.
0 commit comments