summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/hook_test_archival.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/hook_test_archival.py')
-rw-r--r--buildscripts/resmokelib/testing/hook_test_archival.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/resmokelib/testing/hook_test_archival.py b/buildscripts/resmokelib/testing/hook_test_archival.py
index 1873485cdbf..bde562cf617 100644
--- a/buildscripts/resmokelib/testing/hook_test_archival.py
+++ b/buildscripts/resmokelib/testing/hook_test_archival.py
@@ -89,7 +89,6 @@ class HookTestArchival(object):
self._tests_repeat[test_name] = 0
else:
self._tests_repeat[test_name] += 1
- logger.info("Archiving data files for test %s", test_name)
# Normalize test path from a test or hook name.
test_path = \
test_name.replace("/", "_").replace("\\", "_").replace(".", "_").replace(":", "_")
@@ -99,7 +98,7 @@ class HookTestArchival(object):
config.EVERGREEN_EXECUTION,
self._tests_repeat[test_name])
# Retrieve root directory for all dbPaths from fixture.
- input_files = test.fixture.get_dbpath()
+ input_files = test.fixture.get_dbpath_prefix()
s3_bucket = config.ARCHIVE_BUCKET
s3_path = "{}/{}/{}/datafiles/{}".format(
config.EVERGREEN_PROJECT_NAME,
@@ -110,6 +109,7 @@ class HookTestArchival(object):
test_name,
config.EVERGREEN_EXECUTION,
self._tests_repeat[test_name])
+ logger.info("Archiving data files for test %s from %s", test_name, input_files)
status, message = self.archive_instance.archive_files_to_s3(
display_name, input_files, s3_bucket, s3_path)
if status: