Add missing schematic parity drc test to cli
This commit is contained in:
parent
a282762686
commit
465ccaef90
|
@ -57,6 +57,7 @@ public:
|
|||
OUTPUT_FORMAT m_format;
|
||||
|
||||
bool m_exitCodeViolations;
|
||||
bool m_parity;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#define ARG_SEVERITY_WARNING "--severity-warning"
|
||||
#define ARG_SEVERITY_EXCLUSIONS "--severity-exclusions"
|
||||
#define ARG_EXIT_CODE_VIOLATIONS "--exit-code-violations"
|
||||
#define ARG_PARITY "--schematic-parity"
|
||||
|
||||
CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND() : COMMAND( "drc" )
|
||||
{
|
||||
|
@ -83,6 +84,10 @@ CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND() : COMMAND( "drc" )
|
|||
m_argParser.add_argument( ARG_EXIT_CODE_VIOLATIONS )
|
||||
.help( UTF8STDSTR( _( "Return a nonzero exit code if DRC violations exist" ) ) )
|
||||
.flag();
|
||||
|
||||
m_argParser.add_argument( ARG_PARITY )
|
||||
.help( UTF8STDSTR( _( "Test for parity between PCB and schematic" ) ) )
|
||||
.flag();
|
||||
}
|
||||
|
||||
|
||||
|
@ -95,6 +100,7 @@ int CLI::PCB_DRC_COMMAND::doPerform( KIWAY& aKiway )
|
|||
drcJob->SetVarOverrides( m_argDefineVars );
|
||||
drcJob->m_reportAllTrackErrors = m_argParser.get<bool>( ARG_ALL_TRACK_ERRORS );
|
||||
drcJob->m_exitCodeViolations = m_argParser.get<bool>( ARG_EXIT_CODE_VIOLATIONS );
|
||||
drcJob->m_parity = m_argParser.get<bool>( ARG_PARITY );
|
||||
|
||||
if( m_argParser.get<bool>( ARG_SEVERITY_ALL ) )
|
||||
{
|
||||
|
|
|
@ -1006,7 +1006,7 @@ int PCBNEW_JOBS_HANDLER::JobExportDrc( JOB* aJob )
|
|||
|
||||
brd->RecordDRCExclusions();
|
||||
brd->DeleteMARKERs( true, true );
|
||||
drcEngine->RunTests( units, drcJob->m_reportAllTrackErrors, false );
|
||||
drcEngine->RunTests( units, drcJob->m_reportAllTrackErrors, drcJob->m_parity );
|
||||
drcEngine->ClearViolationHandler();
|
||||
|
||||
commit.Push( _( "DRC" ), SKIP_UNDO | SKIP_SET_DIRTY );
|
||||
|
|
Loading…
Reference in New Issue