From c4a16db4d2c89d260c815b4b73dc1c07a02f0564 Mon Sep 17 00:00:00 2001 From: Tom Harding Date: Wed, 15 Mar 2023 17:09:24 +0000 Subject: [PATCH] Fix the unit test `ghcid` `make` command PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8338 GitOrigin-RevId: 07f9780ee23c198c49f0fe2ab5e4074a6fc262e4 --- scripts/make/ghcid.mk | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/make/ghcid.mk b/scripts/make/ghcid.mk index 676cddfcd4d..283bf7d47b9 100644 --- a/scripts/make/ghcid.mk +++ b/scripts/make/ghcid.mk @@ -20,13 +20,11 @@ endef define run_ghcid_main_tests @if [[ $$(uname -p) == 'arm' ]]; then \ - HASURA_TEST_BACKEND_TYPE="$(3)" ghcid -c "DYLD_LIBRARY_PATH=$${DYLD_LIBRARY_PATH:-} cabal repl $(1) $(GHCID_TESTS_FLAGS)" \ - --test "main" \ - --setup ":set args $(2)"; \ + ghcid -c "DYLD_LIBRARY_PATH=$${DYLD_LIBRARY_PATH:-} cabal repl $(1) $(GHCID_TESTS_FLAGS)" \ + --test "main"; \ else \ - HASURA_TEST_BACKEND_TYPE="$(3)" ghcid -c "cabal repl $(1) $(GHCID_TESTS_FLAGS)" \ - --test "main" \ - --setup ":set args $(2)"; \ + ghcid -c "cabal repl $(1) $(GHCID_TESTS_FLAGS)" \ + --test "main"; \ fi endef @@ -111,4 +109,4 @@ ghcid-library-pro: .PHONY: ghcid-test-unit ## ghcid-test-unit: build and run unit tests in ghcid ghcid-test-unit: remove-tix-file - $(call run_ghcid_main_tests,graphql-engine:graphql-engine-tests,unit) + $(call run_ghcid_main_tests,graphql-engine:graphql-engine-tests)