Skip to content

Commit

Permalink
add scripts for traceability
Browse files Browse the repository at this point in the history
  • Loading branch information
joeaba authored Jan 15, 2022
1 parent 1a855aa commit 3bd5a89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system-test/automation_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
# shellcheck disable=SC1091
# shellcheck disable=SC2034

echo "DIR in system-test/automation_utils is : $( cd "$( dirname "${BASH_SOURCE[0]}" )""
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_ROOT=${DIR}/..
echo "REPO_ROOT in system-test/automation_utils is : $REPO_ROOT"
source "${REPO_ROOT}"/ci/upload-ci-artifact.sh
function execution_step {
Expand All @@ -32,6 +34,7 @@ function analyze_packet_loss {
set -x
# shellcheck disable=SC1091
source "${REPO_ROOT}"/net/config/config
cat "${REPO_ROOT}"/net/config/config
mkdir -p iftop-logs
execution_step "Map private -> public IP addresses in iftop logs"
# shellcheck disable=SC2154
Expand Down Expand Up @@ -200,6 +203,7 @@ function upload_results_to_slack() {
echo "SLACK_WEBHOOOK_URL undefined"
exit 1
fi
echo "SLACK_WEBHOOOK_URL is : $SLACK_WEBHOOOK_URL"
[[ -n $BUILDKITE_MESSAGE ]] || BUILDKITE_MESSAGE="Message not defined"
Expand Down

0 comments on commit 3bd5a89

Please sign in to comment.