From dfd210125e9508d20b192a29371ff523746ab758 Mon Sep 17 00:00:00 2001 From: Thomas Suckow Date: Sun, 13 Mar 2022 10:02:13 -0700 Subject: [PATCH] Move logs to folder --- .github/workflows/freebsd.yml | 11 ++++++----- Duplicati/UnitTest/BasicSetupHelper.cs | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index dcadb0233..5f22ace07 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -52,6 +52,8 @@ jobs: echo Restore /var/tmp/dn/dotnet restore --runtime=freebsd-x64 Duplicati.sln + echo Build + /var/tmp/dn/dotnet build Duplicati.sln echo Publish /var/tmp/dn/dotnet publish -c Release --runtime=freebsd-x64 -o publish Duplicati.sln @@ -108,10 +110,9 @@ jobs: echo Restore /var/tmp/dn/dotnet restore --runtime=freebsd-x64 Duplicati.sln echo Testing - mkdir ${BUILD_DIR}/duplicati_testdata - mkdir /var/tmp/duplicati_testdata - touch ${BUILD_DIR}/duplicati_testdata/logfile.log - ln -s ${BUILD_DIR}/duplicati_testdata/logfile.log /var/tmp/duplicati_testdata/logfile.log + mkdir -p ${BUILD_DIR}/duplicati_testdata/logs + mkdir -p /var/tmp/duplicati_testdata + ln -s ${BUILD_DIR}/duplicati_testdata/logs /var/tmp/duplicati_testdata/logs export UNITTEST_BASEFOLDER=/var/tmp/duplicati_testdata /var/tmp/dn/dotnet test --runtime=freebsd-x64 --verbosity minimal Duplicati.sln - name: Archive Test Logs @@ -119,4 +120,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: test-logs - path: duplicati_testdata/logfile.log \ No newline at end of file + path: duplicati_testdata/logs/logfile.log \ No newline at end of file diff --git a/Duplicati/UnitTest/BasicSetupHelper.cs b/Duplicati/UnitTest/BasicSetupHelper.cs index a65181542..4feeae112 100644 --- a/Duplicati/UnitTest/BasicSetupHelper.cs +++ b/Duplicati/UnitTest/BasicSetupHelper.cs @@ -52,7 +52,7 @@ namespace Duplicati.UnitTest /// /// The log file for manual examination /// - protected readonly string LOGFILE = Path.Combine(BASEFOLDER, "logfile.log"); + protected readonly string LOGFILE = Path.Combine(BASEFOLDER, "logs/logfile.log"); /// /// The database is fixed so it does not mess up the system where the test is performed ///