Fix utility test: Pass a command name to do the version check.
authorKlaas Freitag <freitag@owncloud.com>
Tue, 10 May 2016 14:26:42 +0000 (16:26 +0200)
committerKlaas Freitag <freitag@owncloud.com>
Tue, 10 May 2016 14:26:42 +0000 (16:26 +0200)
test/testutility.cpp

index ba6b9fba2e6db48281b465c6e6edbef59b42f76f..a2cfffa97b884b72f495f5061d2d25403ece2394 100644 (file)
@@ -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());