From 99d249403395653d03fa0cb3267d678ae3cf1bd1 Mon Sep 17 00:00:00 2001 From: Guillaume de Rouville Date: Mon, 30 Aug 2021 18:19:00 +0200 Subject: [PATCH] Fix localstack setup issue on local run Signed-off-by: Guillaume de Rouville --- stdlib/helpers.bash | 1 + stdlib/universe.bats | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/stdlib/helpers.bash b/stdlib/helpers.bash index 252fc5c3..e61da042 100644 --- a/stdlib/helpers.bash +++ b/stdlib/helpers.bash @@ -58,6 +58,7 @@ copy_to_sandbox() { cp -a "$source_package" "$target_package" fi } + # Check if there is a localstack instance. # # This is needed to do docs test in the CI. diff --git a/stdlib/universe.bats b/stdlib/universe.bats index add1cc19..4eb14b2d 100644 --- a/stdlib/universe.bats +++ b/stdlib/universe.bats @@ -11,6 +11,13 @@ setup() { common_setup } +# Instead of setup, this just runs once +setup_file() { + load 'helpers' + + cleanup_localstack +} + @test "cue-sanity-check" { dagger -e sanity-check up }