Skip to content

Commit

Permalink
Make code not create folders for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mteroerd committed Jun 22, 2023
1 parent 307c8dd commit 40ed46f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Alignment/APEEstimation/test/autoSubmitter/autoSubmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ def __init__(self, name, config, settings):
if not self.alignment.validConditions or not self.dataset.validConditions or not self.dataset.existingFiles or not self.validConditions:
self.setStatus(STATE_INVALID_CONDITIONS, True)
return


if unitTest:
return

if self.alignment.isDesign and self.dataset.sampleType != "MC":
# For now, this won't immediately shut down the program
print("APE Measurement {} is scheduled to to an APE baseline measurement with a dataset that is not marked as isMC=True. Is this intended?".format(self.name))
Expand Down Expand Up @@ -480,6 +483,7 @@ def main():
global threadcounter
global lock
global use_caf
global unitTest

use_caf = args.caf
unitTest = args.unitTest
Expand Down

0 comments on commit 40ed46f

Please sign in to comment.