diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 9a27b8f1e9..1dd3eaaa82 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -846,6 +846,12 @@ (define-public libgit2 '())) #:phases (modify-phases %standard-phases + ,@(if (target-arm32?) + ;; Some tests are flaky on armhf. + '((add-before 'check 'pre-check + (lambda _ + (setenv "GITTEST_FLAKY_STAT" "true")))) + '()) ;; Run checks more verbosely, unless we are cross-compiling. (replace 'check (lambda* (#:key (tests? #t) #:allow-other-keys)