[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:
Adriaan de Groot 2018-01-29 21:25:18 +01:00
parent c641f5dec6
commit 2da430fa36
3 changed files with 14 additions and 11 deletions

View file

@ -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
}