Skip to content

Commit

Permalink
[UT] add skiplist for PVC w/ rolling driver
Browse files Browse the repository at this point in the history
  • Loading branch information
AshburnLee committed Jun 14, 2024
1 parent c6e0a0e commit 9f46837
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/pass_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create_argument_parser() -> argparse.ArgumentParser:

def get_deselected(report_path: pathlib.Path) -> int:
"""Calculates deselected (via skiplist) tests."""
skiplist_dir = os.getenv('TRITON_TEST_SKIPLIST_DIR', 'scripts/skiplist/default')
skiplist_dir = os.getenv('TRITON_TEST_SKIPLIST_DIR', 'scripts/skiplist/pvc_rolling')
skiplist_path = pathlib.Path(skiplist_dir) / f'{report_path.stem}.txt'
if not skiplist_path.exists():
return 0
Expand Down
4 changes: 3 additions & 1 deletion scripts/pytest-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ TIMESTAMP="$(date '+%Y%m%d%H%M%S')"
SCRIPTS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TRITON_TEST_REPORTS="${TRITON_TEST_REPORTS:-false}"
TRITON_TEST_REPORTS_DIR="${TRITON_TEST_REPORTS_DIR:-$HOME/reports/$TIMESTAMP}"
TRITON_TEST_SKIPLIST_DIR="${TRITON_TEST_SKIPLIST_DIR:-$SCRIPTS_DIR/skiplist/default}"
# The default platform is PVC w/ rolling
TRITON_TEST_SKIPLIST_DIR="${TRITON_TEST_SKIPLIST_DIR:-$SCRIPTS_DIR/skiplist/pvc_rolling}"
TRITON_TEST_WARNING_REPORTS="${TRITON_TEST_WARNING_REPORTS:-false}"
TRITON_TEST_IGNORE_ERRORS="${TRITON_TEST_IGNORE_ERRORS:-false}"

Expand Down Expand Up @@ -34,6 +35,7 @@ pytest() {
mkdir -p "$CURRENT_SKIPLIST_DIR"
# skip comments in the skiplist
sed -e '/^#/d' "$TRITON_TEST_SKIPLIST_DIR/$TRITON_TEST_SUITE.txt" > "$CURRENT_SKIPLIST_DIR/$TRITON_TEST_SUITE.txt"

pytest_extra_args+=(
"--deselect-from-file=$CURRENT_SKIPLIST_DIR/$TRITON_TEST_SUITE.txt"
"--select-fail-on-missing"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9f46837

Please sign in to comment.