From 90ce655d5df79f4b0aef5f443e32529072021e48 Mon Sep 17 00:00:00 2001 From: PeterP Date: Fri, 9 Nov 2018 13:05:39 -0500 Subject: [PATCH] remove SignalIntegrityBook tests base on existence of directory --- .../TestSignalIntegrityApp/TestSignalIntegrityApp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Test/TestSignalIntegrity/TestSignalIntegrityApp/TestSignalIntegrityApp.py b/Test/TestSignalIntegrity/TestSignalIntegrityApp/TestSignalIntegrityApp.py index c6ed86f18..6511a8b43 100644 --- a/Test/TestSignalIntegrity/TestSignalIntegrityApp/TestSignalIntegrityApp.py +++ b/Test/TestSignalIntegrity/TestSignalIntegrityApp/TestSignalIntegrityApp.py @@ -50,6 +50,7 @@ def __init__(self, methodName='runTest'): unittest.TestCase.__init__(self,methodName) def setUp(self): os.chdir(self.path) + self.book=os.path.exists('../../../../SignalIntegrityBook/') def testFourPortTLineTest(self): self.SimulationResultsChecker('FourPortTLineTest.xml') def testFilterTest(self): @@ -85,10 +86,13 @@ def testSignalIntegrityAppExamplesPulseGeneratorTest(self): def testSignalIntegrityAppExamplesStepGeneratorTest(self): self.SimulationResultsChecker('../../../SignalIntegrity/App/Examples/StepGeneratorTest.xml') def testSignalIntegrityAppSignalIntegrityBookMeasurementTDRSimulationTest(self): + if not self.book: return self.SimulationResultsChecker('../../../../SignalIntegrityBook/Measurement/TDRSimulation.xml') def testSignalIntegrityAppSignalIntegrityBookMeasurementTDRSimulationTest2(self): + if not self.book: return self.SimulationResultsChecker('../../../../SignalIntegrityBook/Measurement/TDRSimulation2.xml') def testSignalIntegrityAppSignalIntegrityBookMeasurementTDRSimulationTest3(self): + if not self.book: return self.SimulationResultsChecker('../../../../SignalIntegrityBook/Measurement/TDRSimulation3.xml') def testPicturesNetlists(self): filesList=[ @@ -223,8 +227,9 @@ def testPicturesNetlists(self): ] for filename in filesList: self.setUp() + if not 'SignalIntegrityBook' in filename or self.book: #print filename - self.Preliminary(filename) + self.Preliminary(filename) if __name__ == "__main__": unittest.main()