Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp81104rwp; Wed, 12 Jul 2023 10:00:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhJbvJkhF79h0lf14nwwno5zodMZkreuQTbV0rpIKRjTnJ3rzQzGLQfsFHzrpb3Voya7dh X-Received: by 2002:a05:6a00:a1b:b0:674:8fe0:1262 with SMTP id p27-20020a056a000a1b00b006748fe01262mr18341777pfh.18.1689181229496; Wed, 12 Jul 2023 10:00:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689181229; cv=pass; d=google.com; s=arc-20160816; b=GgKuKdlZ43LQeVZo9ou8rtUF030OtoD1lt6WzNs8zys+mvBoMTig8vz2ZloM3c9x+O 7/VwM9Ch4VIE6t2+4E75gAgyb3HhGlZfy6DUyuoc9m5Dh94h9Kx4PQt0/2HONFzQl5ny zsKvb+uB25iOgFxbjZnNEBI+iyyTWIHG8MrqnJW9gzHKIJxudtP2xxS3aFuxDXS9cE7+ u2WsGf7TZl5AmcrwgsfQuSBkvkDPyIZmhnztu7CssAjGdCgMn1uR+wXxEzjwiLS29hRb keThdhjEfnyT2CkfyAK7TMMBEGS9FQB9T97u3n5KvgeMmGSfQsgmhkoOLopZbi1SrpDT 6mVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LI7UrAM162kd+BkAM3yr4UIRryDtwBu859tgXGcFFtw=; fh=raBgKoRsHCwQLc6ReOhmOoEQ+DtSaNc74fugaHBwryI=; b=wmwYJhJyGoHWxXaiC8eQLz5MJEBN9hjCmxvsL2Dc/ZYCFQm2eQA5MdP1rQ09LROSSf XXiiW/D65t6COCXJNozuhCtqwA0rXXULMQM0vHF7B0RPYK3hK0Fkc48cjKg+JtAGshIO 7fL/cnArSCBqOi+5H3fVVucmauh+s7gVGnwM9i+ow7D9msQ7tWAQy1k7Lo2XQs/cqutX HSpOLJOZxAZePNB5Rky4gRUFLbseLtMvfaQd+tcFSNggVBNXmENp809DWaXmzya82zzY zaH6/bfKfWEJAOzOFhZb7LmipAXeYFc/kEH8ldYaIinED2PxRiUGW1PnrRLqgwVP7gKL 7Aag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=lqt7sU1A; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dw11-20020a056a00368b00b00666add78ca9si3517540pfb.326.2023.07.12.10.00.12; Wed, 12 Jul 2023 10:00:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=lqt7sU1A; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233011AbjGLQsM (ORCPT + 99 others); Wed, 12 Jul 2023 12:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232812AbjGLQsL (ORCPT ); Wed, 12 Jul 2023 12:48:11 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA5710C7 for ; Wed, 12 Jul 2023 09:48:06 -0700 (PDT) Received: from monolith.lan (91-152-120-101.elisa-laajakaista.fi [91.152.120.101]) (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) (Authenticated sender: pav) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4R1Nw134yvz49Q76; Wed, 12 Jul 2023 19:48:01 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1689180483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LI7UrAM162kd+BkAM3yr4UIRryDtwBu859tgXGcFFtw=; b=lqt7sU1AL3OxNF9n9qNSIPggtZMd8pOREJX2y8ZB/MUegqWUL219+qbPI5p7JDT6Wd7xgZ D8q5aGVW+k+t668FR6U/duDnyuAPqAUezQykJaJBagBY8w93skiE9C1pegv/f/46XxuM1P IiWay+opKXYyODHywIzBQM4Mp3PcDwvjGexkx0V6kJd44c5AAt8+F29E/DO5UJFxCDL5/9 bHQQCsyH3wQqFT6k+9iIykCi+o21m0EiRPPy65pnsOS8qcwQcGXFY9jqtfsBJ6FMD9voLf cxM75PA2/7yItGZaNUG4C3bNqZBdWalxK3iWgcRP9NwGprxuyf8/tbmxUzOw8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1689180483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LI7UrAM162kd+BkAM3yr4UIRryDtwBu859tgXGcFFtw=; b=mDgFFVGY7ExTO/KQ/HDXinH8f6yHhtWLhay5Y413NXJHTLxp3pl8LZDW63KdTuBEhdbwFM vKgRv+FKD2RkMiPg06ECk4yUYUNVFL6AedvER0DS4qDANX132hZFzfQuOglgnwTsMdbwjR FI5nZTZG4hIIOtYh/It2b5hbaJJb6MUBnE0DuHIq4eP0enxtz8i9eBKQhWyncpGy2YKJ8f AAHr6CCSf6zLBawzenC0KPYamzyVikh38QR9xA2Da94gfMOPLE4gfWq5VSQBtKnHZFfq+G WktCtcY1KTN09L1B0rQ/miUGfdIrG12xcYEzeAec51IrtqEiIYhn6z+Wr9j9XA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1689180483; a=rsa-sha256; cv=none; b=PFWRE6SP73DtBWYx7BqIRXxk6AqYT8naXXseSB437fJkwHtBORJRZRGMWYL6AzU+be+mQ+ 7QlX0MK8UqIzlwrJ++rzrdIhsuODD+0bIoz8w3ViFsghhGs9RwCjbWetQyMTwp8iaznBmp Yptth0vj5bYlCWA4tfZ+GIyK89SHTZdiz/JRfD5MzFjcchfvq3JVMsWygyBf08Ws6HOWys f//TucV/x0dgtvS02LzlyIohq25CYGQDDwlfV1OA1pmKUC9KMCwarT6BdH9NnuJCw/s+kf 9un2zWfpTkajk12wZZvwZ7jjBSgnCU2x7jyoCyHE4+XjFn7mT/dgSH9rez9hJg== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ 1/2] test-runner: set non-quiet printk before running tests Date: Wed, 12 Jul 2023 19:47:59 +0300 Message-ID: <859a1c176765dbb9ea394dde387b8ed072365ca8.1689180344.git.pav@iki.fi> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org It is useful to see WARN_ON/bt_dev_err messages when running the tests. Enable non-quiet printk levels after boot, so that it is on by default and doesn't need to be handled in local test scripts. --- Notes: It could be useful to also check for BUG/WARNING in the bluez test bot. tools/test-runner.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/test-runner.c b/tools/test-runner.c index d74bb1087..288901a61 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -136,6 +136,20 @@ static const char *config_table[] = { NULL }; +static void enable_printk(void) +{ + FILE *f; + + /* Set non-quiet printk level */ + f = fopen("/proc/sys/kernel/printk", "w"); + if (!f) { + perror("Failed to set printk"); + return; + } + fprintf(f, "7 4 1 7"); + fclose(f); +} + static void prepare_sandbox(void) { int i; @@ -181,6 +195,8 @@ static void prepare_sandbox(void) "mode=0755") < 0) perror("Failed to create filesystem"); } + + enable_printk(); } static char *const qemu_argv[] = { -- 2.41.0