Skip to content

Commit

Permalink
Merge pull request #44588 from mmusich/mm_dev_all-in-one_unit_tests
Browse files Browse the repository at this point in the history
TkAl: protect unit tests against empty queries and drop unused tests
  • Loading branch information
cmsbuild committed Apr 3, 2024
2 parents 7dce3ac + fe9b0a5 commit 67e1e74
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 167 deletions.
163 changes: 0 additions & 163 deletions Alignment/OfflineValidation/test/testingScripts/test_all-in-one.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ scriptName="PVValidation_testingOfflineGT_HLTPhysics_Run2023D_0.sh"
# Create directory if it doesn't exist
mkdir -p "./testExecution"

# Copy script to the test execution directory
cp -pr "./BASH/${scriptName}" "./testExecution/"
# Check if the script exists and is a regular file
if [ -f "./BASH/${scriptName}" ]; then
# Copy script to the test execution directory
cp -pr "./BASH/${scriptName}" "./testExecution/"
else
# Emit a warning if the script doesn't exist or is not a regular file
echo "Warning: Script '${scriptName}' not found or is not a regular file. Skipping excution of further tests."
exit 0
fi

# Change directory to the test execution directory
cd "./testExecution" || exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@ scriptName="batchHarvester_Prompt_0.sh"
# Create directory if it doesn't exist
mkdir -p "./testExecution"

# Copy script to the test execution directory
cp -pr "./BASH/${scriptName}" "./testExecution/"
# Check if the script exists and is a regular file
if [ -f "./BASH/${scriptName}" ]; then
# Copy script to the test execution directory
cp -pr "./BASH/${scriptName}" "./testExecution/"
else
# Emit a warning if the script doesn't exist or is not a regular file
echo "Warning: Script '${scriptName}' not found or is not a regular file. Skipping excution of further tests."
exit 0
fi

# Change directory to the test execution directory
cd "./testExecution" || exit 1
Expand Down

0 comments on commit 67e1e74

Please sign in to comment.