Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ACCC6C433EF for ; Mon, 3 Jan 2022 15:13:49 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 614B33C8FCF for ; Mon, 3 Jan 2022 16:13:46 +0100 (CET) Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 69F203C292E for ; Mon, 3 Jan 2022 16:13:37 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id DA66560087D for ; Mon, 3 Jan 2022 16:13:36 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1D4E2210FC; Mon, 3 Jan 2022 15:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1641222816; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yijcLSNOri3a7hgw2kCqG/PI3Bngv7EIVuAzoMqX45c=; b=nPlVy5aFuNOYOEMqpJKzeSi/u1o9/wVlTGAtJNHOepBTWlnRDbUN+nf96GFD7xVlRJ9RNl Vu3DtbExc4wnHaAy4g3JVNLIsW8AzPL9A002oTwpptKd/2tAm8asYZ4VsThrBig8z+lgWc rKMgYTVv3RMlNE6zFOwqF15bF3ID5WU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1641222816; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yijcLSNOri3a7hgw2kCqG/PI3Bngv7EIVuAzoMqX45c=; b=1RIyJKAljA11Yuo06UJdyO/3FvRv0mMAmYetEkkAytDerlcrnPek+zy501/ZDx2xiE90m6 tTD2WwaWkppmMaAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E515513AED; Mon, 3 Jan 2022 15:13:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id igY9Np8S02EtbQAAMHmgww (envelope-from ); Mon, 03 Jan 2022 15:13:35 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Mon, 3 Jan 2022 16:13:31 +0100 Message-Id: <20220103151332.1989-1-pvorel@suse.cz> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 1/2] lib: Add known-fail test tag X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" to save test reviewers time. Suggested-by: Cyril Hrubis Signed-off-by: Petr Vorel --- doc/c-test-api.txt | 1 + lib/tst_test.c | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/c-test-api.txt b/doc/c-test-api.txt index 6481531cf2..f8ee4de0d1 100644 --- a/doc/c-test-api.txt +++ b/doc/c-test-api.txt @@ -2259,6 +2259,7 @@ struct tst_test test = { .tags = (const struct tst_tag[]) { {"linux-git", "9392a27d88b9"}, {"linux-git", "ff002b30181d"}, + {"known-fail", "ustat() is known to fail with EINVAL on Btrfs"}, {"linux-stable-git", "c4a23c852e80"}, {"CVE", "2020-29373"}, {} diff --git a/lib/tst_test.c b/lib/tst_test.c index 23fc0ebf48..901b363704 100644 --- a/lib/tst_test.c +++ b/lib/tst_test.c @@ -762,10 +762,13 @@ static void print_failure_hint(const char *tag, const char *hint, hint_printed = 1; fprintf(stderr, "\n"); print_colored("HINT: "); - fprintf(stderr, "You _MAY_ be %s, see:\n\n", hint); + fprintf(stderr, "You _MAY_ be %s:\n\n", hint); } - fprintf(stderr, "%s%s\n", url, tags[i].value); + if (url) + fprintf(stderr, "%s%s\n", url, tags[i].value); + else + fprintf(stderr, "%s\n", tags[i].value); } } } @@ -778,6 +781,7 @@ static void print_failure_hints(void) LINUX_STABLE_GIT_URL); print_failure_hint("glibc-git", "missing glibc fixes", GLIBC_GIT_URL); print_failure_hint("CVE", "vulnerable to CVE(s)", CVE_DB_URL); + print_failure_hint("known-fail", "hit by known kernel failures", NULL); } static void do_exit(int ret) -- 2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp