mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
[hostinfo] Editorialize on the tests
- the implementation understands Intel and AMD, but the test was written for my desktop machine (which fails elsewhere). SEE #1471
This commit is contained in:
parent
b1b81f27cc
commit
0902c74809
1 changed files with 6 additions and 1 deletions
|
@ -59,7 +59,12 @@ HostInfoTests::testHostOS()
|
|||
|
||||
QCOMPARE( expect, hostOS() );
|
||||
QCOMPARE( expect, hostOSName() ); // Might be the same
|
||||
QCOMPARE( QStringLiteral( "Intel" ), hostCPU() ); // On all my developer machines
|
||||
|
||||
// This is a lousy test, too: the implementation reads /proc/cpuinfo
|
||||
// and that's the only way we could use, too, to find what the "right"
|
||||
// answer is.
|
||||
QStringList cpunames{ QStringLiteral( "Intel" ), QStringLiteral( "AMD" ) };
|
||||
QVERIFY( cpunames.contains( hostCPU() ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue