Bladeren bron

Fix utility test: Pass a command name to do the version check.

Klaas Freitag 9 jaren geleden
bovenliggende
commit
9e7a8e619b
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      test/testutility.cpp

+ 3 - 1
test/testutility.cpp

@@ -121,7 +121,9 @@ private slots:
                 // Current requires an X-Server
                 return;
             }
-            QString ver = versionOfInstalledBinary(BIN_PATH);
+            // pass the binary name owncloud to the next call. This brakes branding,
+            // but branding is not supposed to work with this.
+            QString ver = versionOfInstalledBinary(BIN_PATH+QLatin1String("/owncloud"));
 	    qDebug() << "Version of installed ownCloud Binary: " << ver;
 	    QVERIFY( !ver.isEmpty());