Skip to content

Commit

Permalink
chore(prysk): fix tests that include test path
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Nov 5, 2024
1 parent d62429e commit aca542d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions turborepo-tests/integration/tests/find-turbo/hard-mode.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ It finds repo root and uses correct version
$ cd $TESTROOT/subdir/node_modules
$ ${TURBO} build --filter foo -vv > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.8.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]hard-mode.t[\/\\]subdir[\/\\]node_modules[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]subdir[\/\\]node_modules[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ cat out.log | tail -n1
--skip-infer build --filter foo -vv --single-package --

Expand All @@ -24,7 +24,7 @@ It respects cwd
$ cd $TESTROOT
$ ${TURBO} build --filter foo -vv --cwd ${TESTROOT}/subdir > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.8.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]hard-mode.t[\/\\]subdir[\/\\]node_modules[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]subdir[\/\\]node_modules[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ cat out.log | tail -n1
--skip-infer build --filter foo -vv --single-package --

Expand All @@ -33,6 +33,6 @@ It respects cwd and finds repo root
$ cd $TESTROOT
$ ${TURBO} build --filter foo -vv --cwd ${TESTROOT}/subdir/node_modules > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.8.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]hard-mode.t[\/\\]subdir[\/\\]node_modules[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]subdir[\/\\]node_modules[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ cat out.log | tail -n1
--skip-infer build --filter foo -vv --single-package --
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Make sure we use local and do not pass --skip-infer to old binary
$ set -o allexport; source .env; set +o allexport;
$ ${TURBO} build --filter foo -vv > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.0.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]unplugged-env-moved\.t[\/\\]\.moved[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]\.moved[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ cat out.log | tail -n1
build --filter foo -vv --

Expand All @@ -16,6 +16,6 @@ Make sure we use local and pass --skip-infer to newer binary
$ set -o allexport; source .env; set +o allexport;
$ ${TURBO} build --filter foo -vv > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.8.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]unplugged-env-moved\.t[\/\\]\.moved[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]\.moved[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ cat out.log | tail -n1
--skip-infer build --filter foo -vv --single-package --
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Make sure we use local and do not pass --skip-infer to old binary
$ ${TESTDIR}/set_version.sh $(pwd) "1.0.0"
$ ${TURBO} build --filter foo -vv > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.0.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]unplugged-moved\.t[\/\\]\.moved[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]\.moved[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ cat out.log | tail -n1
build --filter foo -vv --

Make sure we use local and pass --skip-infer to newer binary
$ ${TESTDIR}/set_version.sh $(pwd) "1.8.0"
$ ${TURBO} build --filter foo -vv > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.8.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]unplugged-moved\.t[\/\\]\.moved[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]\.moved[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo(\.exe)?" out.log
$ cat out.log | tail -n1
--skip-infer build --filter foo -vv --single-package --
4 changes: 2 additions & 2 deletions turborepo-tests/integration/tests/find-turbo/unplugged.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Make sure we use local and do not pass --skip-infer to old binary
$ ${TESTDIR}/set_version.sh $(pwd) "1.0.0"
$ ${TURBO} build --filter foo -vv > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.0.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]unplugged\.t[\/\\]\.yarn[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]\.yarn[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo" out.log
$ cat out.log | tail -n1
build --filter foo -vv --

Make sure we use local and pass --skip-infer to newer binary
$ ${TESTDIR}/set_version.sh $(pwd) "1.8.0"
$ ${TURBO} build --filter foo -vv > out.log 2>&1
$ grep --quiet -F "Local turbo version: 1.8.0" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]unplugged\.t[\/\\]\.yarn[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo" out.log
$ grep --quiet -E "Running local turbo binary in .*[\/\\]\.yarn[\/\\]unplugged[\/\\].*[\/\\]bin[\/\\]turbo" out.log
$ cat out.log | tail -n1
--skip-infer build --filter foo -vv --single-package --

0 comments on commit aca542d

Please sign in to comment.