[welcome] Add debugging checks slow-false and slow-true
This commit is contained in:
parent
26751f2acd
commit
0fd0e9a1af
@ -228,6 +228,15 @@ GeneralRequirements::checkRequirements()
|
||||
false,
|
||||
required } );
|
||||
}
|
||||
if ( entry == "slow-false" )
|
||||
{
|
||||
sleep(3);
|
||||
checkEntries.append( { entry,
|
||||
[] { return tr( "is always false (slowly)" ); },
|
||||
[] { return tr( "The computer says no (slowly)." ); },
|
||||
false,
|
||||
required } );
|
||||
}
|
||||
if ( entry == "true" )
|
||||
{
|
||||
checkEntries.append( { entry,
|
||||
@ -236,6 +245,15 @@ GeneralRequirements::checkRequirements()
|
||||
true,
|
||||
required } );
|
||||
}
|
||||
if ( entry == "slow-true" )
|
||||
{
|
||||
sleep(3);
|
||||
checkEntries.append( { entry,
|
||||
[] { return tr( "is always true (slowly)" ); },
|
||||
[] { return tr( "The computer says yes (slowly)." ); },
|
||||
true,
|
||||
required } );
|
||||
}
|
||||
if ( entry == "snark" )
|
||||
{
|
||||
static unsigned int snark_count = 0;
|
||||
|
@ -67,9 +67,13 @@ requirements:
|
||||
#
|
||||
# Note that the last three checks are for testing-purposes only,
|
||||
# and shouldn't be used in production (they are only available
|
||||
# when building Calamares in development mode):
|
||||
# when building Calamares in development mode). There are five
|
||||
# special checks:
|
||||
# - *false* is a check that is always false (unsatisfied)
|
||||
# - *true* is a check that is always true (satisfied)
|
||||
# - *slow-false* takes 3 seconds, and then is false; use this one to
|
||||
# show off the waiting-spinner before the first results come in
|
||||
# - *slow-true* takes 3 seconds, and then is true
|
||||
# - *snark* is a check that is only satisfied once it has been checked
|
||||
# at least three times ("what I tell you three times is true").
|
||||
check:
|
||||
|
Loading…
Reference in New Issue
Block a user