devtools: fix debug build test
[dpdk.git] / devtools / test-build.sh
index be565a1..52305fb 100755 (executable)
@@ -149,7 +149,7 @@ config () # <directory> <target> <options>
                ! echo $3 | grep -q '+debug' || ( \
                sed -ri=""  's,(RTE_LOG_DP_LEVEL=).*,\1RTE_LOG_DEBUG,' $1/.config
                sed -ri=""           's,(_DEBUG.*=)n,\1y,' $1/.config
-               sed -ri=""            's,(_STAT.*=)n,\1y,' $1/.config
+               sed -ri=""  's,(_STAT)([S_].*=|=)n,\1\2y,' $1/.config
                sed -ri="" 's,(TEST_PMD_RECORD_.*=)n,\1y,' $1/.config )
 
                # Automatic configuration