Use spawn launch method in asv

In default method asv will close stdin and new pytools looks at stdin to determine if the session is interactive.

Solution found in https://github.com/pandas-dev/pandas/pull/25237

Merge request reports

Loading
+4 −2
Changes for build-and-benchmark-py-project.sh: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -37,8 +37,10 @@ fi
master_commit=`git rev-parse master`
test_commit=`git rev-parse HEAD`

asv run $master_commit...$master_commit~ --skip-existing --verbose --show-stderr
asv run $test_commit...$test_commit~ --skip-existing --verbose --show-stderr
# cf. https://github.com/pandas-dev/pandas/pull/25237
# for reasoning on --launch-method=spawn
asv run $master_commit...$master_commit~ --skip-existing --verbose --show-stderr --launch-method=spawn
asv run $test_commit...$test_commit~ --skip-existing --verbose --show-stderr --launch-method=spawn

output=`asv compare $master_commit $test_commit --factor 1 -s`
echo "$output"
Loading