Skip to content

Commit

Permalink
Merge pull request #37072 from smuzaffar/test-das-selected-lumis
Browse files Browse the repository at this point in the history
added unit test for das-selected-lumis.py
  • Loading branch information
cmsbuild authored Feb 27, 2022
2 parents 7107849 + c4ef3f9 commit 974fe40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Configuration/PyReleaseValidation/test/BuildFile.xml
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>
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

0 comments on commit 974fe40

Please sign in to comment.