From 9f7839d4d7732b953a696262a0caef9663edbd65 Mon Sep 17 00:00:00 2001 From: Mehrdad Hessar Date: Thu, 28 Oct 2021 09:48:31 -0700 Subject: [PATCH 1/2] add script --- Jenkinsfile | 2 +- .../task_python_integration_i386only.sh | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 tests/scripts/task_python_integration_i386only.sh diff --git a/Jenkinsfile b/Jenkinsfile index 6f3364bae3f8..953ee6cde6f0 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -335,7 +335,7 @@ stage('Unit Test') { unpack_lib('cpu', tvm_multilib_tsim) timeout(time: max_time, unit: 'MINUTES') { sh "${docker_run} ${ci_cpu} ./tests/scripts/task_ci_setup.sh" - sh "${docker_run} ${ci_cpu} ./tests/scripts/task_python_integration.sh" + sh "${docker_run} ${ci_cpu} ./tests/scripts/task_python_integration_i386only.sh" junit "build/pytest-results/*.xml" } } diff --git a/tests/scripts/task_python_integration_i386only.sh b/tests/scripts/task_python_integration_i386only.sh new file mode 100755 index 000000000000..979ef3390455 --- /dev/null +++ b/tests/scripts/task_python_integration_i386only.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +export TVM_INTEGRATION_I386_ONLY=1 + +./tests/scripts/task_python_integration.sh From e1cf96451a00332afce631f82ff5ebdf0fe3b70c Mon Sep 17 00:00:00 2001 From: Mehrdad Hessar Date: Thu, 28 Oct 2021 10:06:56 -0700 Subject: [PATCH 2/2] address comment --- tests/scripts/task_python_integration_i386only.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/task_python_integration_i386only.sh b/tests/scripts/task_python_integration_i386only.sh index 979ef3390455..9c378a647e3e 100755 --- a/tests/scripts/task_python_integration_i386only.sh +++ b/tests/scripts/task_python_integration_i386only.sh @@ -15,6 +15,8 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +set -e +set -u export TVM_INTEGRATION_I386_ONLY=1