mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
[libcalamares] Allow CommandLine to have unset timeout
- Introduce enum for the appropriate constant - If the timeout isn't set, then defer to the timeout set on the commandlist when running the commands.
This commit is contained in:
parent
c641f5dec6
commit
2da430fa36
3 changed files with 14 additions and 11 deletions
|
@ -145,5 +145,5 @@ script:
|
|||
QCOMPARE( cl.count(), 2 );
|
||||
QCOMPARE( cl.at(0).timeout(), 12 );
|
||||
QCOMPARE( cl.at(0).command(), QStringLiteral( "ls /tmp" ) );
|
||||
QCOMPARE( cl.at(1).timeout(), 10 ); // default
|
||||
QCOMPARE( cl.at(1).timeout(), -1 ); // not set
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue