From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id A5FEC80266 for ; Mon, 31 Aug 2026 22:46:06 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 67VMimaF030802; Tue, 1 Sep 2026 01:44:48 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 67VMimaF030802 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="KucKjng3" Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 67VMikqC030798 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 1 Sep 2026 01:44:46 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 67VMikqC030798 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-47f6e8b5996so184001f8f.2 for ; Mon, 31 Aug 2026 15:44:46 -0700 (PDT) X-Gm-Message-State: AFuF++nKhnAGf8waMHeG118+fgIxFgI9/XaslKz/tMqOaWaln5GxlAIm nAr6RKfkP9dsTwHKOFTeKMReaXNKa50porOPqG1zZd6ak4ldVnyA7M+jczo3ALZepU7kvkBAtX5 rMgDJkJniecuJR1MXi48PhLdJ1uR/3dHeSwnZgeeAwJ2fs2dTuENqiQ== X-Gm-Gg: AYBFou0W9Yhgy2fB5Px53HQJw38DCx97NEFgdko9FR8mbM0dHT+JExjP3ly3Npkb+eW gfD3V7ZUXSWLvsk4JEan9234XSySXiHngW9uAg4byQa/GB7udTtV0No2I6n9qqgxrLR59qUBAkQ 71FnSvCtBMoh7/BtJGSJsYzo6hAXij37onWSTj/n0g5Bs91R/sw6VT6c1BZqvw8H2+3ORyNkB8w oo897VM4us6v9m6habJPsH37DLZvkmKp03fuqVaj2RD/lzJ9M4OjLEfh06EQX6x3SvSnG15h21U 4hnFCOy9fcL/ntKfFjoo8BqWlhq6F3me5xN6kEntsv2gl8vspuFkEW5pJOmr/0HTUGvKOGGkX9V 5UNyt2rNTP6DWA06crkpNBnhmCA== X-Received: by 2002:a05:6000:1864:b0:481:503b:b663 with SMTP id ffacd0b85a97d-482f79c8523mr55689568f8f.18.1788216286067; Mon, 31 Aug 2026 15:44:46 -0700 (PDT) X-Received: by 2002:a05:6000:1864:b0:481:503b:b663 with SMTP id ffacd0b85a97d-482f79c8523mr55689527f8f.18.1788216285624; Mon, 31 Aug 2026 15:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1788216285; cv=none; d=google.com; s=arc-20260327; b=sRd51poEWZs2msGFtUcNdkiNUt7tDGUVSMWHu9UJp83XOpq6h/ca9Y4WaQN722D6gA 7L0mH01TQNnARRTF/kPcXmDrC1Dn9zLNhzlW8HxT3H2XiEVQD5rwxe8jwRFe5SiUUagn FwiyJu2QZwJ8wN8neYf1XKFFfCYMRr+ccg+LzSoJNihMgts1QXsik+5SmQ8gTitqa55l 7yTaqJPV2EV3MB3/SaYVciGUfxasNUMWBVuVE8CUhLXJV9pP6vbmNatpTpUzOjHHPGwA hskd22L30vhgPeeiJGUwCHgOv4VCnXQruHyIvx5/oFiTyytT1q95wUIhjp7XYt7aPy8g PtxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=IdhqcM9kIrSM5wmG7T1xSD40dEIXParUCm0g0W88XZ4=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=V60DTJJC4lqRlTZ5LnGDQrTx5WYMaexHK41bPyCj7aB5zRMsHTiswD0j/OMlN2fwZx N3UzKZXvCFDvLVpEQfwuHFhavfsye+ovBaJ1bB9Tj8VaQAKjHP7dCleSq6im4Mk+K/9C L2un974Fo0NQAPTGB487aOP6MW07jZ+xkkXlb5LJhxSDHQM8HzplWSJTPQlqg1pQBOc2 9zV+pmplXZEj309EQ7gkJbrEyl6RAo+3B62fPqnayTV8TI6rPdDGk3ynMWD8Iw4fY3UG rBMAY2H7UR1R4Tbj9pePHfAmTamUyOQXH8N6Mp2nnXmCE0nuJidLEBGwvV0q0ff2TDM/ 1Dzg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=KucKjng3; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-48442e887e7si656354f8f.496.2026.08.31.15.44.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 15:44:45 -0700 (PDT) Received-SPF: pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=KucKjng3; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=IdhqcM9kIrSM5wmG7T1xSD40dEIXParUCm0g0W88XZ4=; b=KucKjng3Gff2 MRkP/UnaOMzSZ6thXo/pdgavsokW/FD/05EFo0bi29EXyojnakCpGMD5X+u1MhQGLgerYH5vT6EXA +2/q78EMVRFNU3fsNuTo6dlezKeX6v3CTKuLVhZNcQtuoq8TE+s5+oWbpft20WjIH8ngAfS/e8FOL 7M0mqzNwB6hInoIACIU6yZcG53/x+uOJPz5BtUP5MfFEKzDFBduIDDiyQT8v4uHAi2oF55DGeAwQw b+sCm3di61DJQR96Pz7lF7ShMA3e7LTBA5Qz23jbuxzjfBi9hS1xDjlguePsjNM8dkJLkgi6VFjGA Q7SzdqE9TVoaj59wkQtOpQ==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=LekKit-T14) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1x1Ahm-009eeK-1S; Tue, 01 Sep 2026 00:44:36 +0200 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Tue, 1 Sep 2026 01:44:27 +0300 Message-ID: <20260831224443.1641437-1-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH vz10] ms/selftests/sched_ext: flush stdout before test to avoid log spam X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org From: Emil Tsalapatis The sched_ext selftests runner runs each test in the same process, with each test possibly forking multiple times. When the main runner has not flushed its stdout, the children inherit the buffered output for previous tests and emit it during exit. This causes log spam. Make sure stdout/stderr is fully flushed before each test. Cc: Ihor Solodrai Signed-off-by: Emil Tsalapatis Signed-off-by: Tejun Heo Started by hand, the runner writes 12 MB for its 23 tests, the preamble of each repeated about five thousand times, against 8 KB with this applied. run_kselftest.sh starts every test under stdbuf --output=L, so a run through it never shows the duplication. (cherry picked from commit 579a3297b268f0281644ead7ff574a2b4bc64d3c) https://virtuozzo.atlassian.net/browse/VSTOR-143426 Feature: fix selftests Signed-off-by: Eva Kurchatova --- tools/testing/selftests/sched_ext/runner.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/sched_ext/runner.c b/tools/testing/selftests/sched_ext/runner.c index aa2d7d32dda9..5748d2c69903 100644 --- a/tools/testing/selftests/sched_ext/runner.c +++ b/tools/testing/selftests/sched_ext/runner.c @@ -46,6 +46,14 @@ static void print_test_preamble(const struct scx_test *test, bool quiet) if (!quiet) printf("DESCRIPTION: %s\n", test->description); printf("OUTPUT:\n"); + + /* + * The tests may fork with the preamble buffered + * in the children's stdout. Flush before the test + * to avoid printing the message multiple times. + */ + fflush(stdout); + fflush(stderr); } static const char *status_to_result(enum scx_test_status status) -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel