Skip to content

Commit

Permalink
Change Routine exclusions in CoveragePrep export
Browse files Browse the repository at this point in the history
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
  • Loading branch information
josephsnyder committed Aug 14, 2014
1 parent 4a031ce commit c6edc0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Scripts/VistACoveragePrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/')

0 comments on commit c6edc0b

Please sign in to comment.