diff options
author | Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com> | 2021-05-26 19:38:32 +0300 |
---|---|---|
committer | Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com> | 2021-05-26 19:40:13 +0300 |
commit | 516c3f71f626df6e4200cc2d8e2c9fea5d6455a9 (patch) | |
tree | 85fd2fc569d98abc7d970082e061fdbb19771744 | |
parent | a3f68d14609fc94ec89e3eb724664a62bc2b0210 (diff) |
Fix exit code, support individual suite execution
Issue-ID: DCAEGEN2-2796
Signed-off-by: Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Change-Id: I1d4afacc6a125300495404e6734fc105ca1720c3
-rw-r--r-- | csit/README.md | 6 | ||||
-rwxr-xr-x | csit/run-csit.sh | 2 | ||||
-rwxr-xr-x | csit/run-project-csit.sh | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/csit/README.md b/csit/README.md index 88d0411..cdfaf2f 100644 --- a/csit/README.md +++ b/csit/README.md @@ -36,3 +36,9 @@ cd csit ./run-project-csit.sh ``` +To run any individual suite, use run-csit.sh with appropriate plans subdirectory, for example: + +```bash +./run-csit.sh plans/pmmapper +``` + diff --git a/csit/run-csit.sh b/csit/run-csit.sh index fcbcbe1..19dfcce 100755 --- a/csit/run-csit.sh +++ b/csit/run-csit.sh @@ -128,7 +128,7 @@ then fi if [ -z "$WORKSPACE" ]; then - export WORKSPACE=$(git rev-parse --show-toplevel) + export WORKSPACE=$(git rev-parse --show-toplevel)/csit fi if [ -f "${WORKSPACE}/${1}/testplan.txt" ]; then diff --git a/csit/run-project-csit.sh b/csit/run-project-csit.sh index 12eb349..c19d9bb 100755 --- a/csit/run-project-csit.sh +++ b/csit/run-project-csit.sh @@ -30,4 +30,6 @@ for dir in plans/*/ do dir=${dir%*/} # remove the trailing / ./run-csit.sh ${dir} ${TESTOPTIONS} + ((i+=$?)) done +exit $i |