@@ -97,6 +97,10 @@ TEMPEST_ARGS=""
97
97
TEMPEST_DEBUG_MODE=" ${TEMPEST_DEBUG_MODE:- false} "
98
98
TEMPEST_CLEANUP=" ${TEMPEST_CLEANUP:- false} "
99
99
100
+ TEMPEST_STESTR=" $HOMEDIR /openshift/.stestr"
101
+ STESTR_REPO_URL=" https://gitlab.cee.redhat.com/kstrenko/tempest-stestr-data.git"
102
+ STESTR_REPO_DIR=" components-integration/component-cinder-edpm-rhel9-rhoso18.0-crc-nfs/tempest-tests-tempest"
103
+
100
104
function catch_error_if_debug {
101
105
echo " File run_tempest.sh has run into an error!"
102
106
sleep infinity
@@ -291,6 +295,11 @@ function upload_extra_images {
291
295
done
292
296
}
293
297
298
+ function pull_timing_data {
299
+ git clone ${STESTR_REPO_URL} ${HOMEDIR} /stestr-repo
300
+ FULL_PATH=${HOMEDIR} /stestr-repo/${STESTR_REPO_DIR}
301
+ cp -rf ${FULL_PATH} /* ${TEMPEST_STESTR}
302
+ }
294
303
295
304
# This function ensures all arguments are handled properly:
296
305
# - Embedded quotes are preserved, e.g. "Some string"
@@ -366,6 +375,8 @@ function run_git_tempest {
366
375
367
376
mkdir -p ${TEMPEST_LOGS_DIR}
368
377
378
+ pull_timing_data
379
+
369
380
discover_tempest_config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES} \
370
381
&& tempest run ${TEMPEST_ARGS}
371
382
RETURN_VALUE=$?
@@ -414,6 +425,8 @@ function run_rpm_tempest {
414
425
415
426
mkdir -p ${TEMPEST_LOGS_DIR}
416
427
428
+ pull_timing_data
429
+
417
430
discover_tempest_config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES} \
418
431
&& tempest run ${TEMPEST_ARGS}
419
432
RETURN_VALUE=$?
@@ -457,6 +470,21 @@ function generate_test_results {
457
470
popd
458
471
}
459
472
473
+ function push_timing_data {
474
+ git clone --branch main ${STESTR_REPO_URL} ${HOMEDIR} /stestr-repo
475
+ FULL_PATH=${HOMEDIR} /stestr-repo/${STESTR_REPO_DIR}
476
+ mkdir -p ${FULL_PATH}
477
+ cp -r ${TEMPEST_STESTR} /* ${FULL_PATH}
478
+
479
+ git config --global user.email
" [email protected] "
480
+ git config --global user.name " Dummy"
481
+
482
+ cd ${HOMEDIR} /stestr-repo
483
+ git add ${STESTR_REPO_DIR}
484
+ git commit -m " Test update ${STESTR_REPO_DIR} ."
485
+ git push origin main
486
+ }
487
+
460
488
export OS_CLOUD=default
461
489
462
490
if [ ! -z ${USE_EXTERNAL_FILES} ] && [ -e ${TEMPEST_PATH} clouds.yaml ]; then
494
522
495
523
generate_test_results
496
524
525
+ push_timing_data
526
+
497
527
# Keep pod in running state when in debug mode
498
528
if [ ${TEMPEST_DEBUG_MODE} == true ]; then
499
529
sleep infinity
0 commit comments