From a5ce0126cced61b1555911b9530e906f81e4e478 Mon Sep 17 00:00:00 2001 From: Will Feng Date: Mon, 4 Jun 2018 19:25:15 -0400 Subject: [PATCH] Fix job name checking for AVX tests (#8135) --- .jenkins/pytorch/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/pytorch/test.sh b/.jenkins/pytorch/test.sh index 4567de0679..01fee9b40d 100755 --- a/.jenkins/pytorch/test.sh +++ b/.jenkins/pytorch/test.sh @@ -36,10 +36,10 @@ fi export ATEN_DISABLE_AVX= export ATEN_DISABLE_AVX2= -if [[ "${JOB_BASE_NAME}" == *NO_AVX* ]]; then +if [[ "${JOB_BASE_NAME}" == *-NO_AVX-* ]]; then export ATEN_DISABLE_AVX=1 fi -if [[ "${JOB_BASE_NAME}" == *NO_AVX2* ]]; then +if [[ "${JOB_BASE_NAME}" == *-NO_AVX2-* ]]; then export ATEN_DISABLE_AVX2=1 fi