From 3cb3c63490c2b559d918eeb2ee1c5bcfb511d391 Mon Sep 17 00:00:00 2001 From: libmartinito Date: Tue, 28 Nov 2023 13:24:48 +0800 Subject: [PATCH] CC-834 try using busybox --- .github/workflows/test.yml | 11 ++++++----- internal/test_helpers/pass_all/your_grep.sh | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index abf444e..aabfadd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,9 +20,10 @@ jobs: uses: actions/setup-python@v1 with: python-version: '3.x' - - run: grep --version - - run: echo "123" | grep -e "\d" - - run: echo "123" | grep "\d" - - run: echo "123" | grep -E "\d" - - run: echo "123" | ./internal/test_helpers/pass_all/your_grep.sh -E "\d" + + - name: Set up Busybox + run: | + sudo apt-get update + sudo apt-get install -y Busybox + - run: make test diff --git a/internal/test_helpers/pass_all/your_grep.sh b/internal/test_helpers/pass_all/your_grep.sh index 7d2f525..a77fb02 100755 --- a/internal/test_helpers/pass_all/your_grep.sh +++ b/internal/test_helpers/pass_all/your_grep.sh @@ -1,2 +1,2 @@ #!/bin/sh -exec grep "$@" +exec busybox grep "$@"