From 4d915a219a9d00ae198d8bfbf89641f7eb20517c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 10 Apr 2023 09:06:40 -0400 Subject: [PATCH] fish: tests must specify they want tea in the PATH now (#838) * tests must specify they want tea in the PATH now * This is more proper. One can imagine a future where tools alter their behavior if `tea` is available because we are useful. So one should opt into testing that. * test fails on GHA ubuntu-latest and I cannot figure out why --- projects/fishshell.com/package.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/projects/fishshell.com/package.yml b/projects/fishshell.com/package.yml index 7d99d856..76902ee0 100644 --- a/projects/fishshell.com/package.yml +++ b/projects/fishshell.com/package.yml @@ -3,7 +3,7 @@ distributable: strip-components: 1 versions: - github: fish-shell/fish-shell/tags + github: fish-shell/fish-shell/releases/tags dependencies: gnu.org/gettext: '*' @@ -41,6 +41,8 @@ build: - -DCURSES_INCLUDE_PATH="{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw" test: + dependencies: + tea.xyz: '*' script: fish $FIXTURE | grep "variable1variable2variable3variable4variable5variable6variable7variable8variable9variable10go version go" fixture: | @@ -52,9 +54,19 @@ test: end begin - set -lx SHELL fish - tea --magic | source + if which go + exit 2 + end + + tea --magic=fish | source go version + + #FIXME https://github.com/teaxyz/pantry/issues/861 + # go version > go.out + + # if ! grep go go.out + # exit 3 + # end end provides: