Skip to content

Commit 87ce0e1

Browse files
authored
Merge pull request #47743 from fwyzard/add_CUDA_dictionary_test
Fix false positive in `testMissingDictionaryCUDA`
2 parents 16c83b1 + e63f5af commit 87ce0e1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

HeterogeneousCore/CUDATest/test/testMissingDictionaryCUDA.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
function die {
44
echo -e "$1"
5-
echo "exit status $2"
6-
exit $2
5+
exit 1
76
}
87

98
LOCAL_TEST_DIR=${SCRAM_TEST_PATH:-$CMSSW_BASE/src/HeterogeneousCore/CUDATest/test}
109

11-
cmsRun ${LOCAL_TEST_DIR}/testMissingDictionaryCUDA_cfg.py >& testMissingDictionaryCUDA.log && die "The cmsRun test job succeeded unexpectedly" $?
12-
grep -q "An exception of category 'DictionaryNotFound' occurred" testMissingDictionaryCUDA.log || die "Cannot find the following string in the exception message:\nAn exception of category 'DictionaryNotFound' occurred" $?
13-
grep -q "edm::Wrapper<edmtest::MissingDictionaryCUDAObject>" testMissingDictionaryCUDA.log || die "Cannot find the following string in the exception message:\nedm::Wrapper<edmtest::MissingDictionaryCUDAObject>" $?
10+
cmsRun ${LOCAL_TEST_DIR}/testMissingDictionaryCUDA_cfg.py >& testMissingDictionaryCUDA.log && die "The cmsRun test job succeeded unexpectedly"
11+
grep -q "An exception of category 'DictionaryNotFound' occurred" testMissingDictionaryCUDA.log || die "Cannot find the following string in the exception message:\nAn exception of category 'DictionaryNotFound' occurred"
12+
grep -q "edm::Wrapper<edmtest::MissingDictionaryCUDAObject>" testMissingDictionaryCUDA.log || die "Cannot find the following string in the exception message:\nedm::Wrapper<edmtest::MissingDictionaryCUDAObject>"

0 commit comments

Comments
 (0)