From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: bug#34719: [PATCH] gnu: emacs-json-reformat: Fix test. Date: Sun, 10 Mar 2019 00:16:53 +0300 Message-ID: <20190309211653.5265-1-go.wigust@gmail.com> References: <20190303024433.GA4885@z.z> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:48217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2jM6-0008EQ-9J for bug-guix@gnu.org; Sat, 09 Mar 2019 16:18:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2jM4-0004hG-8A for bug-guix@gnu.org; Sat, 09 Mar 2019 16:18:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2jM2-0004ff-Ac for bug-guix@gnu.org; Sat, 09 Mar 2019 16:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h2jM2-0003Q1-54 for bug-guix@gnu.org; Sat, 09 Mar 2019 16:18:02 -0500 In-Reply-To: <20190303024433.GA4885@z.z> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 34719@debbugs.gnu.org, mikadozero@yandex.com This patch deletes a test which tries to compare JSON objects order. * gnu/packages/emacs-xyz.scm (emacs-json-reformat): Delete 'json-reformat-test:json-reformat-region' test. --- gnu/packages/emacs-xyz.scm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 30248f673a..b359777923 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -26,7 +26,7 @@ ;;; Copyright © 2017 George Clemmer ;;; Copyright © 2017, 2018 Feng Shu ;;; Copyright © 2017 Jan Nieuwenhuizen -;;; Copyright © 2017, 2018 Oleg Pykhalov +;;; Copyright © 2017, 2018, 2019 Oleg Pykhalov ;;; Copyright © 2017 Mekeor Melire ;;; Copyright © 2017 Peter Mikkelsen ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice @@ -7032,7 +7032,19 @@ running a customisable handler command (@code{ignore} by default). ") ("ert-runner" ,emacs-ert-runner))) (arguments `(#:tests? #t - #:test-command '("ert-runner"))) + #:test-command '("ert-runner") + #:phases + (modify-phases %standard-phases + (add-before 'check 'delete-json-objects-order-test + (lambda _ + (emacs-batch-edit-file "test/json-reformat-test.el" + `(progn (progn (goto-char (point-min)) + (re-search-forward + "ert-deftest json-reformat-test:json-reformat-region") + (beginning-of-line) + (kill-sexp)) + (basic-save-buffer))) + #t))))) (home-page "https://github.com/gongo/json-reformat") (synopsis "Reformatting tool for JSON") (description "@code{json-reformat} provides a reformatting tool for -- 2.21.0