Skip to content

Commit dbd6b9c

Browse files
use printf instead of echo -e
1 parent 6a62267 commit dbd6b9c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

e2e/run-fixture-projects.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ cp helpers.sh $FIXTURE_PROJECTS_DIR/helpers.sh
2828
HARDHAT_CORE_FOLDER_PATH="$(pwd)/../packages/hardhat-core"
2929

3030
# run all the e2e tests in the temporary directory
31-
echo -e "[e2e] Running tests in $FIXTURE_PROJECTS_DIR\n\n"
31+
printf "[e2e] Running tests in $FIXTURE_PROJECTS_DIR\n\n"
3232

3333
# log version of each package manager
34-
echo -e "[e2e] Package manager version: npm version $(npm --version)\n\n"
34+
printf "[e2e] Package manager version: npm version $(npm --version)\n\n"
3535

3636
for dir in ${FIXTURE_PROJECTS_DIR}/*; do
3737
if [ -d "$dir" ]; then
@@ -53,11 +53,11 @@ for dir in ${FIXTURE_PROJECTS_DIR}/*; do
5353
./test.sh
5454
cd -
5555

56-
echo -e "[e2e] Finished test in $dir\n\n"
56+
printf "[e2e] Finished test in $dir\n\n"
5757
fi
5858
done
5959

60-
echo -e "\n[e2e] All tests passed\n"
60+
printf "\n[e2e] All tests passed\n"
6161

6262
# remove the temporary directory
6363
rm -fr $FIXTURE_PROJECTS_DIR

e2e/test-project-initialization.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mkdir $TESTS_DIR
4747
# store the path to hardhat-core so it can be used in the tmp folder
4848
HARDHAT_CORE_FOLDER_PATH="$(pwd)/../packages/hardhat-core"
4949

50-
echo -e "[e2e] Starting e2e initialization tests in $TESTS_DIR\n\n"
50+
printf "[e2e] Starting e2e initialization tests in $TESTS_DIR\n\n"
5151

5252
pkg_managers="npm pnpm yarn"
5353

@@ -68,7 +68,7 @@ for pkg_manager in $pkg_managers; do
6868
continue
6969
fi
7070

71-
echo -e "\n\n[e2e] Running tests with package manager '$pkg_manager' and package runner '$pkg_runner'"
71+
printf "\n\n[e2e] Running tests with package manager '$pkg_manager' and package runner '$pkg_runner'"
7272

7373
# pkg_manager, javascript, cjs
7474
echo "[e2e] Testing: $pkg_manager, javascript, cjs"
@@ -154,7 +154,7 @@ for pkg_manager in $pkg_managers; do
154154

155155
done
156156

157-
echo -e "\n[e2e] All tests passed\n"
157+
printf "\n[e2e] All tests passed\n"
158158

159159
# remove the temporary directory
160160
rm -fr $TESTS_DIR

0 commit comments

Comments
 (0)