File tree 13 files changed +19
-37
lines changed
13 files changed +19
-37
lines changed Original file line number Diff line number Diff line change 75
75
echo -e " \n***\n*** Argument validation test PASSED. \n***"
76
76
fi
77
77
78
- # Collect all logs and core dumps and copy them to an upper-level directory for
79
- # proper capture on the CI.
80
- cp * .* log* core* ../ || true
78
+ collect_artifacts_from_subdir
81
79
82
80
exit $RET
Original file line number Diff line number Diff line change 371
371
echo -e " \n***\n*** BLS test PASSED. \n***"
372
372
fi
373
373
374
- # Collect all logs and core dumps and copy them to an upper-level directory for
375
- # proper capture on the CI.
376
- cp * .* log* core* ../ || true
374
+ collect_artifacts_from_subdir
377
375
378
376
exit $RET
Original file line number Diff line number Diff line change 82
82
echo -e " \n***\n*** Custom Metrics test PASSED. \n***"
83
83
fi
84
84
85
- # Collect all logs and core dumps and copy them to an upper-level directory for
86
- # proper capture on the CI.
87
- cp * .* log* core* ../ || true
85
+ collect_artifacts_from_subdir
88
86
89
87
exit $RET
Original file line number Diff line number Diff line change 118
118
echo -e " \n***\n*** Decoupled test PASSED. \n***"
119
119
fi
120
120
121
- # Collect all logs and core dumps and copy them to an upper-level directory for
122
- # proper capture on the CI.
123
- cp * .* log* core* ../ || true
121
+ collect_artifacts_from_subdir
124
122
125
123
exit $RET
Original file line number Diff line number Diff line change 114
114
echo -e " \n***\n*** Ensemble test PASSED. \n***"
115
115
fi
116
116
117
- # Collect all logs and core dumps and copy them to an upper-level directory for
118
- # proper capture on the CI.
119
- cp * .* log* core* ../ || true
117
+ collect_artifacts_from_subdir
120
118
121
119
exit $RET
Original file line number Diff line number Diff line change 313
313
echo -e " \n***\n*** Env Manager Test FAILED.\n***"
314
314
fi
315
315
316
- # Collect all logs and core dumps and copy them to an upper-level directory for
317
- # proper capture on the CI.
318
- cp * .* log* core* ../ || true
316
+ collect_artifacts_from_subdir
319
317
320
318
exit $RET
Original file line number Diff line number Diff line change 450
450
echo -e " \n***\n*** Example verification test FAILED.\n***"
451
451
fi
452
452
453
- # Collect all logs and core dumps and copy them to an upper-level directory for
454
- # proper capture on the CI.
455
- cp * .* log* core* ../ || true
453
+ collect_artifacts_from_subdir
456
454
457
455
exit $RET
Original file line number Diff line number Diff line change 172
172
echo -e " \n***\n*** IO test FAILED.\n***"
173
173
fi
174
174
175
- # Collect all logs and core dumps and copy them to an upper-level directory for
176
- # proper capture on the CI.
177
- cp * .* log* core* ../ || true
175
+ collect_artifacts_from_subdir
178
176
179
177
exit $RET
Original file line number Diff line number Diff line change 205
205
echo -e " \n***\n*** Lifecycle test PASSED. \n***"
206
206
fi
207
207
208
- # Collect all logs and core dumps and copy them to an upper-level directory for
209
- # proper capture on the CI.
210
- cp * .* log* core* ../ || true
208
+ collect_artifacts_from_subdir
211
209
212
210
exit $RET
Original file line number Diff line number Diff line change 228
228
echo -e " \n***\n*** Logging test FAILED. \n***"
229
229
fi
230
230
231
- # Collect all logs and core dumps and copy them to an upper-level directory for
232
- # proper capture on the CI.
233
- cp * .* log* core* ../ || true
231
+ collect_artifacts_from_subdir
234
232
235
233
exit $RET
Original file line number Diff line number Diff line change 78
78
echo -e " \n***\n*** model_control_test PASSED. \n***"
79
79
fi
80
80
81
- # Collect all logs and core dumps and copy them to an upper-level directory for
82
- # proper capture on the CI.
83
- cp * .* log* core* ../ || true
81
+ collect_artifacts_from_subdir
84
82
85
83
exit $RET
Original file line number Diff line number Diff line change 126
126
echo -e " \n***\n*** Restart test PASSED. \n***"
127
127
fi
128
128
129
- # Collect all logs and core dumps and copy them to an upper-level directory for
130
- # proper capture on the CI.
131
- cp * .* log* core* ../ || true
129
+ collect_artifacts_from_subdir
132
130
133
131
exit $RET
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # Copyright 2018-2022 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # Copyright 2018-2023 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
3
#
4
4
# Redistribution and use in source and binary forms, with or without
5
5
# modification, are permitted provided that the following conditions
@@ -467,3 +467,9 @@ function kill_servers () {
467
467
wait ${! server_pid[$i]}
468
468
done
469
469
}
470
+
471
+ # Collect all logs and core dumps and copy them to an upper-level directory for
472
+ # proper capture on the CI.
473
+ function collect_artifacts_from_subdir () {
474
+ cp * .* log* core* ../ || true
475
+ }
You can’t perform that action at this time.
0 commit comments