You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/02/05 18:47:17 UTC

[GitHub] [tvm] tkonolige commented on a change in pull request #7407: Generate JUnitXML from pytest

tkonolige commented on a change in pull request #7407:
URL: https://github.com/apache/tvm/pull/7407#discussion_r571177032



##########
File path: tests/scripts/setup-pytest-env.sh
##########
@@ -27,4 +27,18 @@ fi
 set -u
 
 export TVM_PATH=`pwd`
-export PYTHONPATH=${TVM_PATH}/python
+export PYTHONPATH="${TVM_PATH}/python"
+
+export TVM_PYTEST_RESULT_DIR="${TVM_PATH}/build/pytest-results"
+mkdir -p "${TVM_PYTEST_RESULT_DIR}"
+
+function run_pytest() {
+    test_suite_name="$1"
+    shift
+    for ffi_type in ${TVM_PYTEST_FFI_TYPES:-ctypes cython}; do
+        TVM_FFI=${ffi_type} python3 -m pytest \
+           -o "junit_suite_name=${test_suite_name}-ctypes" \

Review comment:
       ```suggestion
              -o "junit_suite_name=${test_suite_name}-${TVM_PYTEST_FFI_TYPES}" \
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org