mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 13:55:39 +02:00
Move shard logic check after help flag check
This commit is contained in:
@@ -257,16 +257,17 @@ namespace Catch {
|
|||||||
if( m_startupExceptions )
|
if( m_startupExceptions )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
||||||
if( m_configData.shardIndex >= m_configData.shardCount ) {
|
|
||||||
Catch::cerr() << "The shard count (" << m_configData.shardCount << ") must be greater than the shard index (" << m_configData.shardIndex << ")\n" << std::flush;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_configData.showHelp || m_configData.libIdentify) {
|
if (m_configData.showHelp || m_configData.libIdentify) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( m_configData.shardIndex >= m_configData.shardCount ) {
|
||||||
|
Catch::cerr() << "The shard count (" << m_configData.shardCount
|
||||||
|
<< ") must be greater than the shard index ("
|
||||||
|
<< m_configData.shardIndex << ")\n"
|
||||||
|
<< std::flush;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
CATCH_TRY {
|
CATCH_TRY {
|
||||||
config(); // Force config to be constructed
|
config(); // Force config to be constructed
|
||||||
|
Reference in New Issue
Block a user