* Breaking t1510-repo-setup.sh tests in pu
@ 2010-11-25 9:56 Ævar Arnfjörð Bjarmason
2010-11-25 11:40 ` Nguyen Thai Ngoc Duy
0 siblings, 1 reply; 4+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2010-11-25 9:56 UTC (permalink / raw)
To: Nguyễn Thái Ngọc Duy; +Cc: Git Mailing List
I haven't investigated these. But that test is breaking in pu now:
$ prove ./t1510-repo-setup.sh
./t1510-repo-setup.sh .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 244/376 subtests
Test Summary Report
-------------------
./t1510-repo-setup.sh (Wstat: 256 Tests: 376 Failed: 244)
Failed tests: 8-9, 11, 15-36, 46-67, 71-92, 101, 103
113-128, 144-159, 169-184, 207-208, 211-234
256-279, 281-282, 284-307, 320-343, 351
353-376
Non-zero exit status: 1
Files=1, Tests=376, 8 wallclock secs ( 0.23 usr 0.02 sys + 0.85
cusr 5.26 csys = 6.36 CPU)
Result: FAIL
All the breakages seem to be due to path differences:
--- expected 2010-11-25 09:53:46.000000000 +0000
+++ result 2010-11-25 09:53:46.000000000 +0000
@@ -1,4 +1,4 @@
-setup: git_dir: /home/avar/g/git/t/trash directory.t1510-repo-setup/3/.git
-setup: worktree: /home/avar/g/git/t/trash directory.t1510-repo-setup/3/wt
+setup: git_dir: .git
+setup: worktree: /home/avar/g/git/t/trash directory.t1510-repo-setup/3
setup: cwd: /home/avar/g/git/t/trash directory.t1510-repo-setup/3
setup: prefix: (null)
not ok - 24 #3: GIT_DIR, GIT_WORK_TREE=wt at root
This is probably due to Nguyễn's recent work. But I'm not sure.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Breaking t1510-repo-setup.sh tests in pu
2010-11-25 9:56 Breaking t1510-repo-setup.sh tests in pu Ævar Arnfjörð Bjarmason
@ 2010-11-25 11:40 ` Nguyen Thai Ngoc Duy
[not found] ` <AANLkTinhgMhrcMtPKL0aOrkeVgo8NE8Sq0fuPuCcbdbq@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2010-11-25 11:40 UTC (permalink / raw)
To: Ævar Arnfjörð Bjarmason; +Cc: Git Mailing List
2010/11/25 Ævar Arnfjörð Bjarmason <avarab@gmail.com>:
> All the breakages seem to be due to path differences:
>
> --- expected 2010-11-25 09:53:46.000000000 +0000
> +++ result 2010-11-25 09:53:46.000000000 +0000
> @@ -1,4 +1,4 @@
> -setup: git_dir: /home/avar/g/git/t/trash directory.t1510-repo-setup/3/.git
> -setup: worktree: /home/avar/g/git/t/trash directory.t1510-repo-setup/3/wt
> +setup: git_dir: .git
> +setup: worktree: /home/avar/g/git/t/trash directory.t1510-repo-setup/3
> setup: cwd: /home/avar/g/git/t/trash directory.t1510-repo-setup/3
> setup: prefix: (null)
> not ok - 24 #3: GIT_DIR, GIT_WORK_TREE=wt at root
>
> This is probably due to Nguyễn's recent work. But I'm not sure.
>
Interesting. That looks like real breakage. I have just run the tests
on pu (f4b0626). It passed. Can you send me the entire log and
/tmp/t1510-trace.log after applying this patch?
diff --git a/t/t1510-repo-setup.sh b/t/t1510-repo-setup.sh
index 0343045..446eb4d 100755
--- a/t/t1510-repo-setup.sh
+++ b/t/t1510-repo-setup.sh
@@ -4,6 +4,8 @@ test_description='Tests of cwd/prefix/worktree/gitdir
setup in all cases'
. ./test-lib.sh
+export GIT_TRACE=/tmp/t1510-trace.log
+
#
# A few rules for repo setup:
#
--
Duy
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: Breaking t1510-repo-setup.sh tests in pu
[not found] ` <AANLkTinhgMhrcMtPKL0aOrkeVgo8NE8Sq0fuPuCcbdbq@mail.gmail.com>
@ 2010-11-26 2:45 ` Nguyen Thai Ngoc Duy
2010-11-26 7:51 ` Johannes Sixt
0 siblings, 1 reply; 4+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2010-11-26 2:45 UTC (permalink / raw)
To: Ævar Arnfjörð Bjarmason; +Cc: Git Mailing List
On Fri, Nov 26, 2010 at 8:21 AM, Ævar Arnfjörð Bjarmason
<avarab@gmail.com> wrote:
> On Thu, Nov 25, 2010 at 12:40, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
>> Interesting. That looks like real breakage. I have just run the tests
>> on pu (f4b0626). It passed. Can you send me the entire log and
>> /tmp/t1510-trace.log after applying this patch?
>
> Here it is. Hope it's useful.
>
OK it's probably bashisms. I think it will pass if you run it with
bash :-P I'll resend the series later without bash specific
constructs.
--
Duy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Breaking t1510-repo-setup.sh tests in pu
2010-11-26 2:45 ` Nguyen Thai Ngoc Duy
@ 2010-11-26 7:51 ` Johannes Sixt
0 siblings, 0 replies; 4+ messages in thread
From: Johannes Sixt @ 2010-11-26 7:51 UTC (permalink / raw)
To: Nguyen Thai Ngoc Duy
Cc: Ævar Arnfjörð Bjarmason, Git Mailing List
Am 11/26/2010 3:45, schrieb Nguyen Thai Ngoc Duy:
> OK it's probably bashisms. I think it will pass if you run it with
> bash :-P I'll resend the series later without bash specific
> constructs.
Sure, it is. This:
GIT_DIR="$TRASH_DIRECTORY/2/.git" test_repo 2/sub
does not work the same way in all shells when test_repo is a shell
function. You have to export GIT_DIR explicitly before the function call.
(But since in this case, test_repo invokes its own subshell anyway, you
better do it in the function.)
-- Hannes
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-26 7:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-25 9:56 Breaking t1510-repo-setup.sh tests in pu Ævar Arnfjörð Bjarmason
2010-11-25 11:40 ` Nguyen Thai Ngoc Duy
[not found] ` <AANLkTinhgMhrcMtPKL0aOrkeVgo8NE8Sq0fuPuCcbdbq@mail.gmail.com>
2010-11-26 2:45 ` Nguyen Thai Ngoc Duy
2010-11-26 7:51 ` Johannes Sixt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).