From 2be190f98966fc2ddbf0f929b101bbc1fffa0241 Mon Sep 17 00:00:00 2001 From: jgart Date: Thu, 25 Dec 2025 17:22:38 -0500 Subject: [PATCH] gnu: borgmatic: Enable tests. * gnu/packages/backup.scm (borgmatic)[arguments]: Enable tests. Change-Id: Ie9db847586fd91d0ce1a7fa162d36878ed81fc00 --- gnu/packages/backup.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 073e1443239f02b7735e215b5a59b6cde7e1af82..019a1d7fc363ba978edaee06e968ea1a1ea8e8b5 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -1219,9 +1219,9 @@ compression parameters used by Gzip.") (build-system pyproject-build-system) (arguments (list - ;; XXX: all tests fail with error: AttributeError: module - ;; '_pytest.runner' has no attribute 'call_runtest_hook'. - #:tests? #f + #:test-flags + ;; TODO: Disable failing test. + #~(list "-k" "not test_borgmatic_version_matches_news_version") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'configure (lambda* (#:key inputs #:allow-other-keys) @@ -1238,10 +1238,10 @@ compression parameters used by Gzip.") "'"))))) (add-before 'check 'set-path (lambda _ - ;; Tests require the installed executable. - (setenv "PATH" - (string-append #$output "/bin" ":" - (getenv "PATH")))))))) + ;; Tests require the installed executable. + (setenv "PATH" + (string-append #$output "/bin" ":" + (getenv "PATH")))))))) (native-inputs (list python-flexmock python-pytest