Changes between Initial Version and Version 1 of Ticket #62231, comment 3


Ignore:
Timestamp:
Feb 7, 2021, 4:28:25 AM (4 years ago)
Author:
Aloisius (Jordan Mendelson)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62231, comment 3

    initial v1  
    11This appears to be some issue that only seems to only happen when running tests via port test. port test fails if I force it to use /usr/bin/git instead of the one being built to run the tests against. Running the tests manually from the build dir outside of port test works fine however.
    22
    3 Attached is a stripped down Portfile that is only useful for running port test git that uses the version in /usr/bin/git. It runs a single test: t/t7063-status-untracked-cache.sh. The main.log from the run is also attached.
     3Attached is a stripped down Portfile that is only useful for running port test git that uses the version in /usr/bin/git. It runs a single test: t/t7063-status-untracked-cache.sh. The main.log from the run is also attached:
     4
     5
     6{{{
     7:info:test not ok 6 - status second time (fully populated cache)
     8:info:test #   
     9:info:test #            avoid_racy &&
     10:info:test #            : >../trace &&
     11:info:test #            GIT_TRACE_UNTRACKED_STATS="$TRASH_DIRECTORY/trace" \
     12:info:test #            git status --porcelain >../actual &&
     13:info:test #            iuc status --porcelain >../status.iuc &&
     14:info:test #            test_cmp ../status.expect ../status.iuc &&
     15:info:test #            test_cmp ../status.expect ../actual &&
     16:info:test #            cat >../trace.expect <<EOF &&
     17:info:test #    node creation: 0
     18:info:test #    gitignore invalidation: 0
     19:info:test #    directory invalidation: 0
     20:info:test #    opendir: 0
     21:info:test #    EOF
     22:info:test #            test_cmp ../trace.expect ../trace
     23:info:test #   
     24:info:test make: *** [t7063-status-untracked-cache.sh] Error 1
     25
     26}}}
    427
    528The 6th test fails because the modification time of the test worktree directory is changed sometime during/after the 5th test runs which causes git to report that a directory had changed when it was not expected to. This only happens when running under port test.