-
Notifications
You must be signed in to change notification settings - Fork 141
Improve testability with GIT_TEST_FSMONITOR #466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
79bb4c8
dd49209
f9db0c3
efc1696
a5b0bf6
9cd4a08
215ec86
e51165f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2339,6 +2339,11 @@ int git_config_get_max_percent_split_change(void) | |
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, SZEDER Gábor wrote (reply to this):
|
||
int git_config_get_fsmonitor(void) | ||
{ | ||
if (!the_repository->worktree) { | ||
core_fsmonitor = 0; | ||
return 0; | ||
} | ||
|
||
if (git_config_get_pathname("core.fsmonitor", &core_fsmonitor)) | ||
core_fsmonitor = getenv("GIT_TEST_FSMONITOR"); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,7 @@ test_expect_success POSIXPERM 'git reflog expire honors core.sharedRepository' ' | |
' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, SZEDER Gábor wrote (reply to this):
|
||
|
||
test_expect_success POSIXPERM 'forced modes' ' | ||
GIT_TEST_FSMONITOR="" && | ||
mkdir -p templates/hooks && | ||
echo update-server-info >templates/hooks/post-update && | ||
chmod +x templates/hooks/post-update && | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -775,6 +775,7 @@ test_expect_success '#29: setup' ' | |
setup_repo 29 non-existent gitfile true && | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, SZEDER Gábor wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, SZEDER Gábor wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, SZEDER Gábor wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
|
||
mkdir -p 29/sub/sub 29/wt/sub && | ||
( | ||
GIT_TEST_FSMONITOR="" && | ||
cd 29 && | ||
GIT_WORK_TREE="$here/29" && | ||
export GIT_WORK_TREE && | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/sh | ||
|
||
GIT_TEST_FSMONITOR="" | ||
|
||
test_description='test git worktree add' | ||
|
||
. ./test-lib.sh | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -697,6 +697,7 @@ test_expect_success 'do "noop" when there is nothing to cherry-pick' ' | |
' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, SZEDER Gábor wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
|
||
|
||
test_expect_success 'submodule rebase setup' ' | ||
GIT_TEST_FSMONITOR="" && | ||
git checkout A && | ||
mkdir sub && | ||
( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1475,3 +1475,18 @@ test_set_port () { | |
port=$(($port + ${GIT_TEST_STRESS_JOB_NR:-0})) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, SZEDER Gábor wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, SZEDER Gábor wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Junio C Hamano wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Junio C Hamano wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Derrick Stolee wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Johannes Schindelin wrote (reply to this):
|
||
eval $var=$port | ||
} | ||
|
||
test_clear_watchman () { | ||
if test -n "$GIT_TEST_FSMONITOR" | ||
then | ||
watchman watch-list | | ||
grep "$TRASH_DIRECTORY" | | ||
sed "s/\",//g" | | ||
sed "s/\"//g" >repo-list | ||
|
||
while read repo | ||
do | ||
watchman watch-del "$repo" | ||
done <repo-list | ||
fi | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Denton Liu wrote (reply to this):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Derrick Stolee wrote (reply to this):