зеркало из https://github.com/nextcloud/desktop.git
Merge pull request #5151 from nextcloud/ci/fixOneTestOnWindows
properly escape a path when creating a test file during tests
This commit is contained in:
Коммит
83c3746857
|
@ -72,7 +72,7 @@ jobs:
|
|||
|
||||
$binFolder = "$buildFolder\bin"
|
||||
|
||||
& OpenCppCoverage.exe --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300 -j (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors
|
||||
& OpenCppCoverage.exe --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300
|
||||
}
|
||||
|
||||
runTestsAndCreateCoverage
|
||||
|
|
|
@ -147,7 +147,7 @@ private slots:
|
|||
void testACreate() { // create a new file
|
||||
QString file(_rootPath + "/foo.txt");
|
||||
QString cmd;
|
||||
cmd = QString("echo \"xyz\" > %1").arg(file);
|
||||
cmd = QString("echo \"xyz\" > \"%1\"").arg(file);
|
||||
qDebug() << "Command: " << cmd;
|
||||
system(cmd.toLocal8Bit());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче