[bug#57462,13/15] gnu: ruby-rubocop: Don't ask to run tests when cross-compiling.

Message ID 20220828144748.15575-13-maximedevos@telenet.be
State New
Headers
Series Don't ask to run tests when cross-compiling. |

Commit Message

Maxime Devos Aug. 28, 2022, 2:47 p.m. UTC
* gnu/packages/ruby.scm
(ruby-rubocop)[arguments]{#:tests?}: When cross-compiling, set to #false.
---
 gnu/packages/ruby.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c1e3dca807..9fdb6e7fbb 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7226,7 +7226,8 @@  (define-public ruby-rubocop
     (arguments
      `(#:test-target "default"
        ;; TODO: Figure out why test hangs.
-       #:tests? ,(not (target-riscv64?))
+       #:tests? ,(not (or (%current-target-system)
+                          (target-riscv64?)))
        #:phases
        (modify-phases %standard-phases
          (add-before 'check 'set-home