• R/O
  • HTTP
  • SSH
  • HTTPS

alterlinux-calamares: Commit

GitHubのミラーです
https://github.com/FascodeNet/alterlinux-calamares


Commit MetaInfo

Révisionb8a9c4c3b78aa58e289dd9212f399e3f6af690b0 (tree)
l'heure2021-02-03 21:48:01
AuteurAdriaan de Groot <groot@kde....>
CommiterAdriaan de Groot

Message de Log

[users] Be more forgiving in tests

- the host system's /etc/group is being read, and that varies between

host OS versions; since I was doing today's release on KaOS, the
test was failing because of arbitrary differences between the
default groups on each Linux flavor.

Change Summary

Modification

--- a/src/modules/users/TestGroupInformation.cpp
+++ b/src/modules/users/TestGroupInformation.cpp
@@ -64,10 +64,9 @@ GroupTests::testReadGroup()
6464 #else
6565 QVERIFY( groups.contains( QStringLiteral( "root" ) ) );
6666 #endif
67- // openSUSE doesn't have "sys"
68- // QVERIFY( groups.contains( QStringLiteral( "sys" ) ) );
69- QVERIFY( groups.contains( QStringLiteral( "nogroup" ) ) );
7067 QVERIFY( groups.contains( QStringLiteral( "tty" ) ) );
68+ // openSUSE doesn't have "sys", KaOS doesn't have "nogroup"
69+ QVERIFY( groups.contains( QStringLiteral( "sys" ) ) || groups.contains( QStringLiteral( "nogroup" ) ) );
7170
7271 for ( const QString& s : groups )
7372 {
Afficher sur ancien navigateur de dépôt.