Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions unittests
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ mkdir -p $tmp

# trap "rm -rf $tmp" EXIT INT QUIT

ver=$(python -c 'import sys; print("%d.%d" % sys.version_info[:2])')
python setup.py build

# So *always* use the in-tree version of configtools here.
# prefix better be right at this point
if [[ ! -f build/scripts-2.7/getconf.py ]]
if [[ ! -f build/scripts-$ver/getconf.py ]]
then
echo "Cannot find getconf.py: build/scripts-2.7/getconf.py" 1>&2
echo "Cannot find getconf.py: build/scripts-$ver/getconf.py" 1>&2
exit 1
fi

Expand All @@ -26,7 +27,7 @@ ppathins() {
export PYTHONPATH
ppathins $PWD/build/lib

bin=$PWD/build/scripts-2.7
bin=$PWD/build/scripts-$ver

function run_test {
testnum=$1
Expand Down