Message ID | 17cedc45c05d54f39d47bac3bbcd51a2ebae5a39.1682452738.git.dev@jpoiret.xyz |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0697727BBE2; Tue, 25 Apr 2023 21:17:29 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6696627BBE9 for <patchwork@mira.cbaines.net>; Tue, 25 Apr 2023 21:17:28 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1prP64-0007jL-Ip; Tue, 25 Apr 2023 16:17:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1prP61-0007iS-6L for guix-patches@gnu.org; Tue, 25 Apr 2023 16:17:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1prP5y-0007F2-SV for guix-patches@gnu.org; Tue, 25 Apr 2023 16:17:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1prP5y-0001vs-Ne for guix-patches@gnu.org; Tue, 25 Apr 2023 16:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63074] [PATCH 2/2] tests: guix-graph.sh: Fix expected path from emacs to libffi. Resent-From: Josselin Poiret <dev@jpoiret.xyz> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Apr 2023 20:17:02 +0000 Resent-Message-ID: <handler.63074.B63074.16824538137400@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63074 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Josselin Poiret <dev@jpoiret.xyz>, 63074@debbugs.gnu.org Received: via spool by 63074-submit@debbugs.gnu.org id=B63074.16824538137400 (code B ref 63074); Tue, 25 Apr 2023 20:17:02 +0000 Received: (at 63074) by debbugs.gnu.org; 25 Apr 2023 20:16:53 +0000 Received: from localhost ([127.0.0.1]:53661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1prP5o-0001vI-KE for submit@debbugs.gnu.org; Tue, 25 Apr 2023 16:16:53 -0400 Received: from jpoiret.xyz ([206.189.101.64]:54118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dev@jpoiret.xyz>) id 1prP5g-0001un-IL for 63074@debbugs.gnu.org; Tue, 25 Apr 2023 16:16:48 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id C12AE18530D; Tue, 25 Apr 2023 20:16:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1682453804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y37mSGTAIbMnP+CzO1grAcbWo0CbmA7v/0BoReCcnIQ=; b=R2XGYP3J1Q7RQVDcyXewVP7JqaEa9gF9JzwjX+o41eOvbTRogz4RyfXFW5RYbVgs1b834K xSSyd106tE3Qq0cDKDAEE9oSu4R8mupGip531+vi3gc1m+v6S1YIwFjr6WHlDk0JmqSMy8 7Oe40gRIKyQyhUdVE/Ba/ULTX9SHQTs3uQfXMjQ57SFYEpuoOEoyaMEcPtZfRlwFS4Po3Z AxHh4OfjIHgg8JFs1QrkA2ov3RFKwQDFiwFWk//7n8wWDU3vGOJgUfBPI5szqsrlkhJfto FTPcAEcMBCK8/3ZipsaWlOmMAVAnomJ2LiahUuzbMTM4vVhxO9RBf6aYM3/NVg== Date: Tue, 25 Apr 2023 22:16:42 +0200 Message-Id: <17cedc45c05d54f39d47bac3bbcd51a2ebae5a39.1682452738.git.dev@jpoiret.xyz> In-Reply-To: <cover.1682452738.git.dev@jpoiret.xyz> References: <cover.1682452738.git.dev@jpoiret.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: Josselin Poiret <dev@jpoiret.xyz> X-ACL-Warn: , Josselin Poiret via Guix-patches <guix-patches@gnu.org> From: Josselin Poiret via Guix-patches via <guix-patches@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Fix tests to prepare for guix package upgrade
|
|
Commit Message
Josselin Poiret
April 25, 2023, 8:16 p.m. UTC
* tests/guix-graph.sh: Change the expected path from emacs to libffi. `guix graph --path` outputs only one possible path, and the one it outputs for this case has changed. --- tests/guix-graph.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Josselin, On Tue, 25 Apr 2023 at 22:16, Josselin Poiret via Guix-patches via <guix-patches@gnu.org> wrote: > * tests/guix-graph.sh: Change the expected path from emacs to libffi. `guix > graph --path` outputs only one possible path, and the one it outputs for this > case has changed. > --- > tests/guix-graph.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/guix-graph.sh b/tests/guix-graph.sh > index 9824c6a65a..37ea0a7b8c 100644 > --- a/tests/guix-graph.sh > +++ b/tests/guix-graph.sh > @@ -87,7 +87,7 @@ guix graph --path emacs vim && false > path="\ > emacs > gnutls > -guile > +p11-kit > libffi" > test "`guix graph --path emacs libffi | cut -d '@' -f1`" = "$path" Hum, that’s annoying. Well, indeed “guix graph --path” returns one of the shortest paths. And this result depends on how the graph is built and then walked. That’s deterministic (should be!) but can depend on the Guix revision. Well, does it make sense to check the equality of such specific path? Maybe, instead the test could check some invariant property. For instance, that the length of the path between two packages must be the same as between the same packages but with a package transformation (replacement or else). Or some others. For example, that the length from A to C is equal to the length from A to B added to the length from B to C. WDYT? Cheers, simon
diff --git a/tests/guix-graph.sh b/tests/guix-graph.sh index 9824c6a65a..37ea0a7b8c 100644 --- a/tests/guix-graph.sh +++ b/tests/guix-graph.sh @@ -87,7 +87,7 @@ guix graph --path emacs vim && false path="\ emacs gnutls -guile +p11-kit libffi" test "`guix graph --path emacs libffi | cut -d '@' -f1`" = "$path"