From 34e3d028b9d180535108432a46b9569be6ab4dc5 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sun, 10 Mar 2019 00:10:51 +0300 Subject: gnu: emacs-json-reformat: Fix test. 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 @@ (define-public emacs-json-reformat ("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 -- cgit v1.2.3