aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-04-11 08:36:06 +0000
committerTibor Frank <tifrank@cisco.com>2019-04-15 09:51:41 +0000
commitcc0c2870a18fb74a56410eca2d1870bddc945397 (patch)
tree8d12ec472a3a1f79f25ac341b09d1b5b0eb8866e /resources/libraries/bash
parent18422fd2221c2474f07450280a7af1a06b1c2207 (diff)
Add output.xml with only INFO logging leve
- Useful for post-processing. Change-Id: I6f71087f8c6f6d66fd86207d5df9abd10e94f855 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r--resources/libraries/bash/function/common.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh
index 879602674a..eaad2ab3d5 100644
--- a/resources/libraries/bash/function/common.sh
+++ b/resources/libraries/bash/function/common.sh
@@ -580,6 +580,14 @@ function run_pybot () {
pybot "${all_options[@]}" "${GENERATED_DIR}/tests/"
PYBOT_EXIT_STATUS="$?"
set -e
+
+ # Generate INFO level output_info.xml for post-processing.
+ all_options=("--loglevel" "INFO")
+ all_options+=("--log" "none")
+ all_options+=("--report" "none")
+ all_options+=("--output" "${ARCHIVE_DIR}/output_info.xml")
+ all_options+=("${ARCHIVE_DIR}/output.xml")
+ rebot "${all_options[@]}"
popd || die "Change directory operation failed."
}