fix(vpp-hst): do not run debug tests without a successful build 53/43053/1
authorSemir Sionek <[email protected]>
Wed, 28 May 2025 15:59:11 +0000 (15:59 +0000)
committerSemir Sionek <[email protected]>
Wed, 28 May 2025 15:59:11 +0000 (15:59 +0000)
Change-Id: I56b2cf222ad6422b183ee0b2498927e91825f725
Signed-off-by: Semir Sionek <[email protected]>
jjb/scripts/vpp/debug-hst.sh

index 1761d09..bf26aa8 100755 (executable)
@@ -27,7 +27,7 @@ BUILD_ERROR=""
 RETVAL="0"
 HST_DIR="./extras/hs-test"
 
-vpp_make_build_debug() {
+hst_build_run() {
     if ! make UNATTENDED=yes install-dep ; then
         BUILD_ERROR="FAILED 'make install-dep'"
         return
@@ -40,9 +40,6 @@ vpp_make_build_debug() {
         BUILD_ERROR="FAILED 'make -C $HST_DIR build-debug'"
         return
     fi
-}
-
-hst_test_debug() {
     if ! make VERBOSE=true VPPSRC="$(pwd)" -C "$HST_DIR" test-debug ; then
         BUILD_ERROR="FAILED 'make -C $HST_DIR test-debug'"
         return
@@ -50,8 +47,7 @@ hst_test_debug() {
 }
 
 if [ "${DRYRUN,,}" != "true" ] ; then
-    vpp_make_build_debug
-    hst_test_debug
+    hst_build_run
 fi
 if [ -n "$BUILD_ERROR" ] ; then
     BUILD_RESULT="$BUILD_ERROR"