aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-06-26 05:40:21 +0000
committerPeter Mikus <pmikus@cisco.com>2019-06-26 05:40:21 +0000
commit755842654e0d7144de9fafb836fedc6ebe794c95 (patch)
treefdcaaccfe9d622de8675a50df92ad30554e7ff40 /resources/libraries
parent7cac9ce6ee499efae7d631c022453b7dba8a3290 (diff)
Introduce EXPECTED_FAILING
Change-Id: I6c578e9126778c584ccb57a4a2c76d96dea8fb35 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/bash/function/common.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh
index 5deab8aa40..96c7940f79 100644
--- a/resources/libraries/bash/function/common.sh
+++ b/resources/libraries/bash/function/common.sh
@@ -107,11 +107,6 @@ function activate_virtualenv () {
# Functions called:
# - die - Print to stderr and exit.
- # TODO: Do we want the callers to be able to set the env dir name?
- # TODO: + In that case, do we want to support env switching?
- # TODO: + In that case we want to make env_dir global.
- # TODO: Do we want the callers to override PYTHONPATH loaction?
-
root_path="${1-$CSIT_DIR}"
env_dir="${root_path}/env"
req_path=${2-$CSIT_DIR/requirements.txt}
@@ -156,7 +151,6 @@ function check_download_dir () {
set -exuo pipefail
# Fail if there are no files visible in ${DOWNLOAD_DIR}.
- # TODO: Do we need this as a function, if it is (almost) a one-liner?
#
# Variables read:
# - DOWNLOAD_DIR - Path to directory pybot takes the build to test from.
@@ -619,11 +613,11 @@ function run_pybot () {
# - die - Print to stderr and exit.
all_options=("--outputdir" "${ARCHIVE_DIR}" "${PYBOT_ARGS[@]}")
+ all_options+=("--noncritical" "EXPECTED_FAILING")
all_options+=("${EXPANDED_TAGS[@]}")
pushd "${CSIT_DIR}" || die "Change directory operation failed."
set +e
- # TODO: Make robot tests not require "$(pwd)" == "${CSIT_DIR}".
pybot "${all_options[@]}" "${GENERATED_DIR}/tests/"
PYBOT_EXIT_STATUS="$?"
set -e