Commit b01dbb6d authored by Petr Vokac's avatar Petr Vokac
Browse files

Gfal can calculate checksum also for root protocol

parent 6ad056e3
......@@ -1023,11 +1023,9 @@ def play_with_file(scope, tester, source, destination):
descr = "Upload to testdir: " + extract_file(destination)
orch.add_initialization(tester.Upload_testfile, [add_file_prefix(source), destination], descr)
# root in gfal does not support checksums
if not destination.startswith("root://"):
sourcechksum = calculate_checksum("md5", source)
descr = "Verify md5 checksum: " + sourcechksum
orch.add(tester.Verify_checksum, [destination, "md5", sourcechksum], descr)
sourcechksum = calculate_checksum("md5", source)
descr = "Verify md5 checksum: " + sourcechksum
orch.add(tester.Verify_checksum, [destination, "md5", sourcechksum], descr)
descr = "Download from testdir: " + extract_file(destination)
orch.add(tester.Download_testfile, [destination, add_file_prefix(local_testfile)], descr)
......@@ -1038,11 +1036,9 @@ def play_with_file(scope, tester, source, destination):
descr = "Verify size is " + str(st.st_size)
orch.add(tester.Verify_size, [destination, st.st_size], descr)
# root in gfal does not support checksums
if not destination.startswith("root://"):
sourcechksum = calculate_checksum("md5", source)
descr = "Verify md5 checksum: " + sourcechksum
orch.add(tester.Verify_checksum, [destination, "md5", sourcechksum], descr)
sourcechksum = calculate_checksum("md5", source)
descr = "Verify md5 checksum: " + sourcechksum
orch.add(tester.Verify_checksum, [destination, "md5", sourcechksum], descr)
descr = "Remove: " + extract_file(destination)
orch.add_cleanup(tester.Remove_file, [destination], descr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment