Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Background:
Running tests on MiNiFi currently leaves untracked files in the working directory.
Test example generating untracked files
adam@amarkovics-Linux:~/work/minifi-cpp/build$ git st On branch MINIFICPP-1183 Your branch is up to date with 'origin/MINIFICPP-1183'. nothing to commit, working tree clean adam@amarkovics-Linux:~/work/minifi-cpp/build$ ctest -j24 -R CAPITests Test project /home/adam/work/minifi-cpp/build Start 30: CAPITests 1/1 Test #30: CAPITests ........................ Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 Total Test time (real) = 0.01 secadam@amarkovics-Linux:~/work/minifi-cpp/build$ git st On branch MINIFICPP-1183Your branch is up to date with 'origin/MINIFICPP-1183'. Untracked files: (use "git add <file>..." to include in what will be committed) \ ../libminifi/test/1593438783981-9 nothing added to commit but untracked files present (use "git add" to track)
Proposal:
There are utility functions available that create temporary directories for all target platforms. Change the tests so that they use this functionality.