-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37072 from smuzaffar/test-das-selected-lumis
added unit test for das-selected-lumis.py
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<test name="test-das-selected-lumis" command="test-das-selected-lumis.sh"> | ||
<flags USE_UNITTEST_DIR="1"/> | ||
</test> |
8 changes: 8 additions & 0 deletions
8
Configuration/PyReleaseValidation/test/test-das-selected-lumis.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash -ex | ||
export CMS_BOT_USE_DASGOCLIENT=true | ||
QUERY="lumi,file dataset=/HIHardProbes/HIRun2018A-v1/RAW run=326479" | ||
dasgoclient --limit 0 --query "${QUERY}" --format json | das-selected-lumis.py 1,23 | grep '^/store/' > original.txt | ||
cat original.txt | ||
if [ $(cat original.txt | wc -l) -eq 0 ] ; then | ||
exit 1 | ||
fi |