]> git.proxmox.com Git - mirror_frr.git/blob - tests/topotests/docker/inner/entrypoint.sh
Merge pull request #12818 from imzyxwvu/fix/other-table-inactive
[mirror_frr.git] / tests / topotests / docker / inner / entrypoint.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: MIT
3 #
4 # Copyright 2018 Network Device Education Foundation, Inc. ("NetDEF")
5
6 # Load shared functions
7 CDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8 . $CDIR/funcs.sh
9
10 set -e
11
12 #
13 # Script begin
14 #
15 "${CDIR}/compile_frr.sh"
16 "${CDIR}/openvswitch.sh"
17
18 cd "${FRR_BUILD_DIR}/tests/topotests"
19
20 log_info "Setting permissions on /tmp so we can generate logs"
21 chmod 1777 /tmp
22
23 if [ $# -eq 0 ] || ([[ "$1" != /* ]] && [[ "$1" != ./* ]]); then
24 export TOPOTESTS_CHECK_MEMLEAK=/tmp/memleak_
25 export TOPOTESTS_CHECK_STDERR=Yes
26 set -- pytest \
27 --junitxml /tmp/topotests.xml \
28 "$@"
29 fi
30
31 exec "$@"