Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: KumoLiu <[email protected]>
  • Loading branch information
KumoLiu committed Oct 9, 2023
1 parent 374933b commit fe05820
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ do
print_usage
;;
-p|--path)
homedir=$2
testdir=$2
shift
;;
*)
Expand All @@ -357,17 +357,19 @@ done

# home directory
currentdir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -e "$homedir" ]
if [ -e "$testdir" ]
then
echo "run tests under $homedir"
homedir=$testdir
if [ "$homedir" != "$currentdir" ]
then
$(cp $currentdir/"pyproject.toml" $homedir/"pyproject.toml")
else :
fi
else
print_error_msg "Incorrect path: $testdir provided, run under $currentdir"
homedir=$currentdir
fi
echo "run tests under $homedir"
cd "$homedir"

# python path
Expand Down

0 comments on commit fe05820

Please sign in to comment.