@@ -29,7 +29,7 @@ def test_01_xrdcp_local_to_server(self):
29
29
os .chown (temp_dir , user [2 ], user [3 ])
30
30
hostname = socket .getfqdn ()
31
31
os .chmod (temp_dir , 0o777 )
32
- xrootd_url = 'root://%s:%d /%s/copied_file.txt' % (hostname , core . config [ 'xrootd.port' ] , temp_dir )
32
+ xrootd_url = 'root://%s/%s/copied_file.txt' % (hostname , temp_dir )
33
33
command = ('xrdcp' , '--debug' , '3' , TestXrootd .__data_path , xrootd_url )
34
34
35
35
status , stdout , stderr = core .system (command , user = True )
@@ -62,7 +62,7 @@ def test_03_xrdcp_server_to_local(self):
62
62
f = open (temp_source_dir + "/copied_file.txt" , "w" )
63
63
f .write ("This is some test data for an xrootd test." )
64
64
f .close ()
65
- xrootd_url = 'root://%s:%d /%s/copied_file.txt' % (hostname , core . config [ 'xrootd.port' ] , temp_source_dir )
65
+ xrootd_url = 'root://%s/%s/copied_file.txt' % (hostname , temp_source_dir )
66
66
local_path = temp_target_dir + '/copied_file.txt'
67
67
command = ('xrdcp' , '--debug' , '3' , xrootd_url , local_path )
68
68
@@ -86,12 +86,12 @@ def test_04_xrootd_fuse(self):
86
86
os .mkdir (TestXrootd .__fuse_path )
87
87
hostname = socket .getfqdn ()
88
88
89
- #For some reason, sub process hangs on fuse processes, use os.system
90
- os .system ("mount -t fuse -o rdr=root://localhost:%d //tmp,uid=xrootd xrootdfs %s" %
91
- ( core . config [ 'xrootd.port' ], TestXrootd .__fuse_path ) )
89
+ # For some reason, sub process hangs on fuse processes, use os.system
90
+ os .system ("mount -t fuse -o rdr=root://localhost//tmp,uid=xrootd xrootdfs %s" %
91
+ TestXrootd .__fuse_path )
92
92
93
93
# Copy a file in and see if it made it into the fuse mount
94
- xrootd_url = 'root://%s:%d /%s/copied_file.txt' % (hostname , core . config [ 'xrootd.port' ] , "/tmp" )
94
+ xrootd_url = 'root://%s/%s/copied_file.txt' % (hostname , "/tmp" )
95
95
core .system (['xrdcp' , '--debug' , '3' , TestXrootd .__data_path , xrootd_url ], user = True )
96
96
97
97
self .assert_ (os .path .isfile ("/tmp/copied_file.txt" ), "Test file not uploaded to FUSE mount" )
0 commit comments