From 9d1d35ebdc46c60623c712fe2783a5f50bdf1a63 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 25 Jan 2021 17:58:01 +0200 Subject: [PATCH] tests: fix a test message index bug on `VTEST_SHOW_START=1` --- cmd/tools/modules/testing/common.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index 264b1ad354..503364c93a 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -65,7 +65,9 @@ pub fn (mut ts TestSession) print_messages() { ts.nprint_ended <- 0 return } - ts.nmessage_idx++ + if rmessage.kind != .info { + ts.nmessage_idx++ + } msg := rmessage.message.replace_each([ 'TMP1', '${ts.nmessage_idx:1d}',