Merge pull request #251408 from matrss/disable-getoptions-tests-against-yash

getoptions: disable tests against yash
This commit is contained in:
Matthias Beyer
2023-08-25 19:45:22 +02:00
committed by GitHub
+3
View File
@@ -18,8 +18,11 @@ stdenvNoCC.mkDerivation rec {
nativeCheckInputs = [ shellspec ksh mksh yash zsh ]
++ lib.lists.optional (!stdenvNoCC.isDarwin) busybox-sandbox-shell;
# Disable checks against yash, since shellspec seems to be broken for yash>=2.54
# (see: https://github.com/NixOS/nixpkgs/pull/218264#pullrequestreview-1434402054)
preCheck = ''
sed -i '/shellspec -s posh/d' Makefile
sed -i '/shellspec -s yash/d' Makefile
'' + lib.strings.optionalString stdenvNoCC.isDarwin ''
sed -i "/shellspec -s 'busybox ash'/d" Makefile
'';