From c6edc0bb109410fb4cf8660dacfa26f912b793be Mon Sep 17 00:00:00 2001 From: Joseph Snyder Date: Wed, 13 Aug 2014 16:02:07 -0400 Subject: [PATCH] Change Routine exclusions in CoveragePrep export Change the call of the RoutineExport function based upon the routines given to the function. If all routines are expected to be exported, then include the ROUTINE_EXTRACT_EXCLUDE_LIST in the call to the routine exporter. If a specific list is given, do not include the exclusions. OSEHRA-Id: http://issues.osehra.org/browse/OAT-154 Change-Id: I11cd7f1ad619929d2f19aa74edfcc1e7f847b9b7 --- Scripts/VistACoveragePrep.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Scripts/VistACoveragePrep.py b/Scripts/VistACoveragePrep.py index 0c3c72455..e9eb40051 100644 --- a/Scripts/VistACoveragePrep.py +++ b/Scripts/VistACoveragePrep.py @@ -33,7 +33,10 @@ with testClient as vistAClient: vistAClient.setLogFile("CoveragePrep.log") RoutineExport = VistARoutineExport() - RoutineExport.exportRoutines(testClient,result.outputFile,result.routines,ROUTINE_EXTRACT_EXCLUDE_LIST) + if result.routines== ['*']: + RoutineExport.exportRoutines(testClient,result.outputFile,result.routines,ROUTINE_EXTRACT_EXCLUDE_LIST) + else: + RoutineExport.exportRoutines(testClient,result.outputFile,result.routines,None) import UnpackRO path, filename = os.path.split(result.outputFile) UnpackRO.unpack(open(result.outputFile,'r'), sys.stdout, path+'/CoverageSource/') \ No newline at end of file