Skip to content

Commit

Permalink
Use utils function for artifacts collection
Browse files Browse the repository at this point in the history
  • Loading branch information
krishung5 committed Aug 8, 2023
1 parent 49b092e commit 50afe88
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 37 deletions.
4 changes: 1 addition & 3 deletions qa/L0_backend_python/argument_validation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ else
echo -e "\n***\n*** Argument validation test PASSED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/bls/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ else
echo -e "\n***\n*** BLS test PASSED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/custom_metrics/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ else
echo -e "\n***\n*** Custom Metrics test PASSED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/decoupled/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ else
echo -e "\n***\n*** Decoupled test PASSED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/ensemble/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ else
echo -e "\n***\n*** Ensemble test PASSED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/env/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ else
echo -e "\n***\n*** Env Manager Test FAILED.\n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/examples/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,6 @@ else
echo -e "\n***\n*** Example verification test FAILED.\n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/io/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ else
echo -e "\n***\n*** IO test FAILED.\n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/lifecycle/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ else
echo -e "\n***\n*** Lifecycle test PASSED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/logging/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ else
echo -e "\n***\n*** Logging test FAILED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/model_control/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ else
echo -e "\n***\n*** model_control_test PASSED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
4 changes: 1 addition & 3 deletions qa/L0_backend_python/restart/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ else
echo -e "\n***\n*** Restart test PASSED. \n***"
fi

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
cp *.*log* core* ../ || true
collect_artifacts_from_subdir

exit $RET
8 changes: 7 additions & 1 deletion qa/common/util.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright 2018-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright 2018-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -467,3 +467,9 @@ function kill_servers () {
wait ${!server_pid[$i]}
done
}

# Collect all logs and core dumps and copy them to an upper-level directory for
# proper capture on the CI.
function collect_artifacts_from_subdir () {
cp *.*log* core* ../ || true
}

0 comments on commit 50afe88

Please sign in to comment.