Skip to content

Commit

Permalink
Fix inclusion for tests/run.sh (dotnet#74866) (dotnet#74875)
Browse files Browse the repository at this point in the history
* Fix inclusion for tests/run.sh

* Resolve paths
  • Loading branch information
a74nh authored Sep 2, 2022
1 parent 174e043 commit 85a1c65
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ readonly EXIT_CODE_SUCCESS=0 # Script ran normally.
readonly EXIT_CODE_EXCEPTION=1 # Script exited because something exceptional happened (e.g. bad arguments, Ctrl-C interrupt).
readonly EXIT_CODE_TEST_FAILURE=2 # Script completed successfully, but one or more tests failed.

# Argument variables
scriptPath="$(cd "$(dirname "$BASH_SOURCE[0]")"; pwd -P)"
repoRootDir="$(cd "$scriptPath"/../..; pwd -P)"
source "$repoRootDir/eng/native/init-os-and-arch.sh"

# Argument variables
buildArch="$arch"
buildOS=
buildConfiguration="Debug"
Expand Down Expand Up @@ -196,8 +199,6 @@ fi
################################################################################

runtestPyArguments=("-arch" "${buildArch}" "-build_type" "${buildConfiguration}")
scriptPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
repoRootDir=$scriptPath/../..

echo "Build Architecture : ${buildArch}"
echo "Build Configuration : ${buildConfiguration}"
Expand Down

0 comments on commit 85a1c65

Please sign in to comment.