Skip to content

Commit

Permalink
Add junit xml parameters
Browse files Browse the repository at this point in the history
Tweak container and time scenarios to use them for Sippy to scrape them.

Signed-off-by: Naga Ravi Chaitanya Elluri <[email protected]>
  • Loading branch information
chaitanyaenr committed Sep 5, 2024
1 parent f455680 commit cf34cd5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
11 changes: 10 additions & 1 deletion container-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,14 @@ envsubst < config.yaml.template > /tmp/container_scenario_config.yaml
# Run Kraken
cat /tmp/container_scenario_config.yaml
cat /tmp/container_scenario.yaml
python3.9 $krkn_loc/run_kraken.py --config=/tmp/container_scenario_config.yaml -o /tmp/report.out

[ -z $JUNIT_TESTCASE ] && JUNIT_TESTCASE="container-scenarios"
[ -z $ARTIFACT_DIR ] && ARTIFACT_DIR="/tmp"

TEST_VERSION=`oc version -o json | jq .openshiftVersion`

python3.9 $krn_loc/run_kraken.py --config=/tmp/container_scenario_config.yaml \
-o /tmp/report.out \
--junit-testcase "$JUNIT_TESTCASE" \
--junit-testcase-path "$ARTIFACT_DIR" \
--junit-testcase-version "$TEST_VERSION"
4 changes: 2 additions & 2 deletions pod-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ envsubst < config.yaml.template > /tmp/pod_scenario_config.yaml
cat /tmp/pod_scenario_config.yaml
cat /tmp/pod_scenario.yaml

[ -z $JUNIT_TESTCASE ] && JUNIT_TESTCASE="Pod scenarios"
[ -z $JUNIT_TESTCASE ] && JUNIT_TESTCASE="pod-scenarios"
[ -z $ARTIFACT_DIR ] && ARTIFACT_DIR="/tmp"

TEST_VERSION=`oc version -o json | jq .openshiftVersion`
Expand All @@ -39,4 +39,4 @@ python3.9 $krn_loc/run_kraken.py --config=/tmp/pod_scenario_config.yaml \
-o /tmp/report.out \
--junit-testcase "$JUNIT_TESTCASE" \
--junit-testcase-path "$ARTIFACT_DIR" \
--junit-testcase-version "$TEST_VERSION"
--junit-testcase-version "$TEST_VERSION"
12 changes: 11 additions & 1 deletion time-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,14 @@ envsubst < config.yaml.template > /tmp/time_scenario_config.yaml
# Run Kraken
cat /tmp/time_scenario_config.yaml
cat /tmp/time_scenario.yaml
python3.9 $krkn_loc/run_kraken.py --config=/tmp/time_scenario_config.yaml -o /tmp/report.out

[ -z $JUNIT_TESTCASE ] && JUNIT_TESTCASE="time-scenarios"
[ -z $ARTIFACT_DIR ] && ARTIFACT_DIR="/tmp"

TEST_VERSION=`oc version -o json | jq .openshiftVersion`

python3.9 $krn_loc/run_kraken.py --config=/tmp/time_scenario_config.yaml \
-o /tmp/report.out \
--junit-testcase "$JUNIT_TESTCASE" \
--junit-testcase-path "$ARTIFACT_DIR" \
--junit-testcase-version "$TEST_VERSION"

0 comments on commit cf34cd5

Please sign in to comment.