File: post_test_hook.sh

package info (click to toggle)
murano-dashboard 1%3A10.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,620 kB
  • sloc: python: 15,632; javascript: 1,627; sh: 106; makefile: 38
file content (27 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

XTRACE=$(set +o | grep xtrace)
set -o xtrace

DEST=${DEST:-/opt/stack/new}
DASHBOARD_DIR=$DEST/murano-dashboard

source $DASHBOARD_DIR/functional_tests/collect_results.sh
source $DASHBOARD_DIR/functional_tests/run_test.sh

echo "#Run murano-dashboard functional test"
set +e
start_xvfb_session
run_tests
EXIT_CODE=$?
set -e

echo "Collect the test results"
do_collect_results

echo "Kill Xvfb"
sudo pkill Xvfb

exit $EXIT_CODE

$XTRACE