Opened 5 years ago

#51436 new defect

git @2.8.2: failed tests from t7063-status-untracked-cache.sh

Reported by: mojca (Mojca Miklavec) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: git

Description

Here are some failed tests from running

sudo port -v test git +bash_completion +perl5_24 +svn

on 10.7:

*** t7063-status-untracked-cache.sh ***
ok 1 - core.untrackedCache is unset
ok 2 - setup
ok 3 - untracked cache is empty
ok 4 - status first time (empty cache)
ok 5 - untracked cache after first status
not ok 6 - status second time (fully populated cache)
#	
#		avoid_racy &&
#		: >../trace &&
#		GIT_TRACE_UNTRACKED_STATS="$TRASH_DIRECTORY/trace" \
#		git status --porcelain >../actual &&
#		test_cmp ../status.expect ../actual &&
#		cat >../trace.expect <<EOF &&
#	node creation: 0
#	gitignore invalidation: 0
#	directory invalidation: 0
#	opendir: 0
#	EOF
#		test_cmp ../trace.expect ../trace
#	
ok 7 - untracked cache after second status
ok 8 - modify in root directory, one dir invalidation
ok 9 - verify untracked cache dump
ok 10 - new .gitignore invalidates recursively
ok 11 - verify untracked cache dump
ok 12 - new info/exclude invalidates everything
ok 13 - verify untracked cache dump
ok 14 - move two from tracked to untracked
ok 15 - status after the move
ok 16 - verify untracked cache dump
ok 17 - move two from untracked to tracked
ok 18 - status after the move
ok 19 - verify untracked cache dump
ok 20 - set up for sparse checkout testing
ok 21 - status after commit
ok 22 - untracked cache correct after commit
ok 23 - set up sparse checkout
ok 24 - create/modify files, some of which are gitignored
ok 25 - test sparse status with untracked cache
ok 26 - untracked cache correct after status
not ok 27 - test sparse status again with untracked cache
#	
#		avoid_racy &&
#		: >../trace &&
#		GIT_TRACE_UNTRACKED_STATS="$TRASH_DIRECTORY/trace" \
#		git status --porcelain >../status.actual &&
#		cat >../status.expect <<EOF &&
#	 M done/two
#	?? .gitignore
#	?? done/five
#	?? dtwo/
#	EOF
#		test_cmp ../status.expect ../status.actual &&
#		cat >../trace.expect <<EOF &&
#	node creation: 0
#	gitignore invalidation: 0
#	directory invalidation: 0
#	opendir: 0
#	EOF
#		test_cmp ../trace.expect ../trace
#	
ok 28 - set up for test of subdir and sparse checkouts
not ok 29 - test sparse status with untracked cache and subdir
#	
#		avoid_racy &&
#		: >../trace &&
#		GIT_TRACE_UNTRACKED_STATS="$TRASH_DIRECTORY/trace" \
#		git status --porcelain >../status.actual &&
#		cat >../status.expect <<EOF &&
#	 M done/two
#	?? .gitignore
#	?? done/five
#	?? done/sub/
#	?? dtwo/
#	EOF
#		test_cmp ../status.expect ../status.actual &&
#		cat >../trace.expect <<EOF &&
#	node creation: 2
#	gitignore invalidation: 0
#	directory invalidation: 1
#	opendir: 3
#	EOF
#		test_cmp ../trace.expect ../trace
#	
ok 30 - verify untracked cache dump (sparse/subdirs)
not ok 31 - test sparse status again with untracked cache and subdir
#	
#		avoid_racy &&
#		: >../trace &&
#		GIT_TRACE_UNTRACKED_STATS="$TRASH_DIRECTORY/trace" \
#		git status --porcelain >../status.actual &&
#		test_cmp ../status.expect ../status.actual &&
#		cat >../trace.expect <<EOF &&
#	node creation: 0
#	gitignore invalidation: 0
#	directory invalidation: 0
#	opendir: 0
#	EOF
#		test_cmp ../trace.expect ../trace
#	
ok 32 - move entry in subdir from untracked to cached
ok 33 - move entry in subdir from cached to untracked
ok 34 - --no-untracked-cache removes the cache
ok 35 - git status does not change anything
ok 36 - setting core.untrackedCache to true and using git status creates the cache
ok 37 - using --no-untracked-cache does not fail when core.untrackedCache is true
ok 38 - setting core.untrackedCache to false and using git status removes the cache
ok 39 - using --untracked-cache does not fail when core.untrackedCache is false
ok 40 - setting core.untrackedCache to keep
ok 41 - test ident field is working
# failed 4 among 41 test(s)
1..41
make[2]: *** [t7063-status-untracked-cache.sh] Error 1
make[1]: *** [test] Error 2
make: *** [test] Error 2
Command failed:  cd "/path/to/git/work/git-2.8.2" && make test CFLAGS="-I. -Wall -O2 -I/opt/local/include -arch x86_64" LDFLAGS="-L/opt/local/lib -arch x86_64" CC=/usr/bin/clang prefix=/opt/local CURLDIR=/opt/local OPENSSLDIR=/opt/local ICONVDIR=/opt/local PERL_PATH="/opt/local/bin/perl5.24" NO_FINK=1 NO_DARWIN_PORTS=1 NO_R_TO_GCC_LINKER=1 V=1 PYTHON_PATH="/opt/local/bin/python2.7" LIBPCREDIR=/opt/local USE_LIBPCRE=1 
Exit code: 2

I added just

  • Portfile

     
    2929
    3030perl5.require_variant   yes
    3131perl5.conflict_variants yes
    32 perl5.branches          5.22
     32perl5.branches          5.22 5.24
    3333perl5.create_variants   ${perl5.branches}
    3434perl5.default_branch    5.22
    3535

and didn't yet try to investigate whether any particular flag/variant/version influences the behaviour.

Change History (0)

Note: See TracTickets for help on using tickets.