[v2,07/12] CI: Remove norun option

Message ID 20230303144727.481716-8-amikan@ilbers.de
State Accepted, archived
Headers show
Series Next avocado improvements​ | expand

Commit Message

Anton Mikanovich March 3, 2023, 2:47 p.m. UTC
This actually removes option added in 155c139 because '-n' flag no more
used in .gitlab-ci.yml. If someone still needs to skip startvm test
cases tag '-startvm' can be used.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 scripts/ci_build.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Patch

diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index fcac180..cd4249f 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -50,7 +50,6 @@  show_help() {
     echo "                             the tests will be started in current path."
     echo "    -d, --debug              enable debug bitbake output."
     echo "    -T, --tags               specify basic avocado tags."
-    echo "    -n, --norun              do not execute QEMU run tests."
     echo "    --help                   display this message and exit."
     echo
     echo "Exit status:"
@@ -89,6 +88,7 @@  do
         ;;
     -n|--norun)
         NORUN="1"
+        echo "warning: deprecated parameter '$key', consider using '-T <TAG>,-startvm' instead"
         ;;
     -t|--timeout)
         TIMEOUT="-p time_to_wait=$2"
@@ -115,9 +115,12 @@  if [ -z "$TAGS" ]; then
     fi
 fi
 
+# Deprecated
 if [ -n "$NORUN" ]; then
     TAGS="$TAGS,-startvm"
-else
+fi
+
+if echo "$TAGS" | grep -Fqive "-startvm"; then
     if [ ! -f /usr/share/doc/qemu-system/copyright ]; then
         sudo apt-get update -qq
         sudo apt-get install -y --no-install-recommends qemu-system ovmf