diff --git a/tests/ui-posix/update-all-references.sh b/tests/ui-posix/update-all-references.sh index ddd69c399a5..d6aa69c7e8d 100755 --- a/tests/ui-posix/update-all-references.sh +++ b/tests/ui-posix/update-all-references.sh @@ -18,14 +18,11 @@ # # See all `update-references.sh`, if you just want to update a single test. -if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" || "$2" != "" ]]; then - echo "usage: $0 " - echo "" - echo "For example:" - echo " $0 ../../../build/x86_64-apple-darwin/test/ui" +if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" ]]; then + echo "usage: $0" fi -BUILD_DIR=$PWD/$1 +BUILD_DIR=$PWD/target/debug/test_build_base MY_DIR=$(dirname $0) cd $MY_DIR find . -name '*.rs' | xargs ./update-references.sh $BUILD_DIR diff --git a/tests/ui-windows/update-all-references.sh b/tests/ui-windows/update-all-references.sh index ddd69c399a5..d6aa69c7e8d 100755 --- a/tests/ui-windows/update-all-references.sh +++ b/tests/ui-windows/update-all-references.sh @@ -18,14 +18,11 @@ # # See all `update-references.sh`, if you just want to update a single test. -if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" || "$2" != "" ]]; then - echo "usage: $0 " - echo "" - echo "For example:" - echo " $0 ../../../build/x86_64-apple-darwin/test/ui" +if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" ]]; then + echo "usage: $0" fi -BUILD_DIR=$PWD/$1 +BUILD_DIR=$PWD/target/debug/test_build_base MY_DIR=$(dirname $0) cd $MY_DIR find . -name '*.rs' | xargs ./update-references.sh $BUILD_DIR diff --git a/tests/ui/update-all-references.sh b/tests/ui/update-all-references.sh index ddd69c399a5..d6aa69c7e8d 100755 --- a/tests/ui/update-all-references.sh +++ b/tests/ui/update-all-references.sh @@ -18,14 +18,11 @@ # # See all `update-references.sh`, if you just want to update a single test. -if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" || "$2" != "" ]]; then - echo "usage: $0 " - echo "" - echo "For example:" - echo " $0 ../../../build/x86_64-apple-darwin/test/ui" +if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" ]]; then + echo "usage: $0" fi -BUILD_DIR=$PWD/$1 +BUILD_DIR=$PWD/target/debug/test_build_base MY_DIR=$(dirname $0) cd $MY_DIR find . -name '*.rs' | xargs ./update-references.sh $BUILD_DIR