From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 45D611F8C8 for ; Mon, 27 Sep 2021 21:32:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237258AbhI0VeN (ORCPT ); Mon, 27 Sep 2021 17:34:13 -0400 Received: from 82-64-198-250.subs.proxad.net ([82.64.198.250]:47116 "EHLO mail.lhuard.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236743AbhI0VeL (ORCPT ); Mon, 27 Sep 2021 17:34:11 -0400 Received: from coruscant.lhuard.fr (unknown [IPv6:2a01:e0a:465:5440:2b6b:76fe:e08a:5eba]) (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 mail.lhuard.fr (Postfix) with ESMTPSA id F416E511686; Mon, 27 Sep 2021 23:31:59 +0200 (CEST) Authentication-Results: mail.lhuard.fr; dmarc=fail (p=quarantine dis=none) header.from=lhuard.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lhuard.fr; s=rpi3; t=1632778320; bh=LsX4rpiy8qoFJhLWAXFvMjFIQQjC54k4ySed6C22EFk=; h=From:To:Cc:Subject:Date; b=Md+1d//V0SSocLmsF0P3QqTkTMwXiJ4tV+S7lRruv9dRNcPCGHwct5dz1PyZQdbU2 YI6poBBwoaxjsovjUnHu2hc+Fz0nNwutA2qGgFB7s38Q0Q9oVagen/b1onmfuC1P3A szbN2YY5BaeHvWfwWUpPNwHCcy/TrDOQWRK05Aow= From: =?UTF-8?q?L=C3=A9na=C3=AFc=20Huard?= To: git@vger.kernel.org Cc: Junio C Hamano , Derrick Stolee , Derrick Stolee , Eric Sunshine , =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= , =?UTF-8?q?L=C3=A9na=C3=AFc=20Huard?= Subject: [PATCH 0/1] maintenance: fix test t7900-maintenance.sh Date: Mon, 27 Sep 2021 23:30:15 +0200 Message-Id: <20210927213016.21714-1-lenaic@lhuard.fr> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org The test t7900-maintenance.sh seems to be currently broken on the master branch on some platforms. Since commit b681b191, one of the test leverages `systemd-analyze verify` utility to check the correctness of systemd unit files generated by git. But, whereas it works on Arch Linux with a recent version of systemd, it fails on Ubuntu 18.04 and systemd 237 with this error [1]: Failed to create /user.slice/user-1000.slice/session-44.scope/init.scope control group: Permission denied Failed to initialize manager: Permission denied It also fails on CentOS 7.9 and systemd 219 with this error [2]: Failed to open /dev/tty0: Permission denied Failed to load systemd/user/git-maintenance@.service: Invalid argument This patch changes the prerequisite used in the test to check if `system-analyze verify` can be used. As a result, this step should be now skipped on the two above-mentioned platforms instead of making the test fail. [1] https://lore.kernel.org/git/4c0c1fd4-f3f4-5e3a-abd2-0350c18b18b7@gmail.com/ [2] https://lore.kernel.org/git/874ka618n4.fsf@evledraar.gmail.com/ Lénaïc Huard (1): maintenance: fix test t7900-maintenance.sh t/t7900-maintenance.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.33.0