Feat!: Update JJB version to 6x
[releng/builder.git] / jjb / integration / integration-csit-run-postscript.sh
1 #!/bin/bash
2 #The following script runs any configurable postplan stored in test/csit/postplans.
3 if [ -f "${WORKSPACE}/test/csit/postplans/${TESTPLAN}" ]; then
4     echo "postplan exists!!!"
5     echo "Changing the postplan path..."
6     script_name=${WORKSPACE}/test/csit/postplans/${TESTPLAN}
7     sed "s:integration:${WORKSPACE}:" "${script_name}" > postplan.txt
8     cat postplan.txt
9     grep -Ev '(^[[:space:]]*#|^[[:space:]]*$)' postplan.txt | while read -r line ; do
10         echo "Executing ${line}..."
11         ${line}
12     done
13 fi