No more windows paths in tests.
This commit is contained in:
parent
8edd0100e8
commit
0d7b411729
@ -1,17 +0,0 @@
|
|||||||
<update version="3">
|
|
||||||
<install>
|
|
||||||
<file>
|
|
||||||
<source>sourceOne</source>
|
|
||||||
<dest>destOne</dest>
|
|
||||||
<mode>0777</mode>
|
|
||||||
</file>
|
|
||||||
<file>
|
|
||||||
<source>MultiMC.exe</source>
|
|
||||||
<dest>M\u\l\t\i\M\C\e\x\e</dest>
|
|
||||||
<mode>0644</mode>
|
|
||||||
</file>
|
|
||||||
</install>
|
|
||||||
<uninstall>
|
|
||||||
<file>toDelete.abc</file>
|
|
||||||
</uninstall>
|
|
||||||
</update>
|
|
@ -99,11 +99,7 @@ slots:
|
|||||||
ops << DownloadUpdateTask::UpdateOperation::CopyOp("sourceOne", "destOne", 0777)
|
ops << DownloadUpdateTask::UpdateOperation::CopyOp("sourceOne", "destOne", 0777)
|
||||||
<< DownloadUpdateTask::UpdateOperation::CopyOp("MultiMC.exe", "M/u/l/t/i/M/C/e/x/e")
|
<< DownloadUpdateTask::UpdateOperation::CopyOp("MultiMC.exe", "M/u/l/t/i/M/C/e/x/e")
|
||||||
<< DownloadUpdateTask::UpdateOperation::DeleteOp("toDelete.abc");
|
<< DownloadUpdateTask::UpdateOperation::DeleteOp("toDelete.abc");
|
||||||
#if defined(Q_OS_WIN)
|
|
||||||
auto testFile = "tests/data/tst_DownloadUpdateTask-test_writeInstallScript_win32.xml";
|
|
||||||
#else
|
|
||||||
auto testFile = "tests/data/tst_DownloadUpdateTask-test_writeInstallScript.xml";
|
auto testFile = "tests/data/tst_DownloadUpdateTask-test_writeInstallScript.xml";
|
||||||
#endif
|
|
||||||
const QString script = QDir::temp().absoluteFilePath("MultiMCUpdateScript.xml");
|
const QString script = QDir::temp().absoluteFilePath("MultiMCUpdateScript.xml");
|
||||||
QVERIFY(task.writeInstallScript(ops, script));
|
QVERIFY(task.writeInstallScript(ops, script));
|
||||||
QCOMPARE(TestsInternal::readFileUtf8(script).replace(QRegExp("[\r\n]+"), "\n"),
|
QCOMPARE(TestsInternal::readFileUtf8(script).replace(QRegExp("[\r\n]+"), "\n"),
|
||||||
|
Loading…
Reference in New Issue
Block a user