Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1276

CAPITests should clean up the temporary files it creates

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            adam-markovics Ádám Markovics
            adam-markovics Ádám Markovics
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m