Skip to content

Commit 830077b

Browse files
author
efajardo
committed
Fixes that Mat requested
1 parent b1f0d52 commit 830077b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

osgtest/library/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def get_hostname():
636636

637637
def check_file_ownership(file_path, owner_name):
638638
"""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
640640
"""
641641
owner_uid = pwd.getpwnam(owner_name)
642642
try:

osgtest/tests/test_450_xrootd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import shutil
44
import tempfile
55
import pwd
6-
from os import stat
76

87
import osgtest.library.core as core
98
import osgtest.library.files as files
@@ -49,6 +48,7 @@ def test_02_xrootd_multiuser(self):
4948
if core.config['xrootd.multiuser'] == "ON":
5049
file_path = os.path.join(temp_dir, 'copied_file.txt')
5150
result_perm = core.check_file_ownership(file_path, core.options.username)
51+
shutil.rmtree(temp_dir)
5252
self.assertEqual(result_perm, True)
5353

5454
def test_03_xrdcp_server_to_local(self):

0 commit comments

Comments
 (0)