All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no  filesystem mode support
@ 2009-02-11  9:51 Alex Riesen
  2009-02-11 10:09 ` Junio C Hamano
  2009-02-11 10:09 ` Johannes Sixt
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Riesen @ 2009-02-11  9:51 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Johannes Schindelin, Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---

I'm honestly sorry for my contributions. They seem to be exclusively
in the "make Git work in Windows" area.  Depressing.

 t/t3400-rebase.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

[-- Attachment #2: 0001-Disable-filemode-rebase-tests-in-t3400-rebase.sh-if-n.diff --]
[-- Type: application/octet-stream, Size: 1121 bytes --]

From f41b99bbdf10249c0dfcb54545709f0a8dd00484 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Wed, 11 Feb 2009 10:45:43 +0100
Subject: [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no filesystem mode support

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 t/t3400-rebase.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/t/t3400-rebase.sh b/t/t3400-rebase.sh
index 8c0c5f5..a229276 100755
--- a/t/t3400-rebase.sh
+++ b/t/t3400-rebase.sh
@@ -70,6 +70,10 @@ test_expect_success \
      test 3 = $(git rev-list master.. | wc -l)
 '
 
+if test "$(git config --bool core.filemode)" = false
+then
+    say 'skipping rebase filemode tests (no filesystem support)'
+else
 test_expect_success 'rebase a single mode change' '
      git checkout master &&
      echo 1 > X &&
@@ -94,5 +98,6 @@ test_expect_success 'Show verbose error when HEAD could not be detached' '
      test_must_fail git rebase topic 2> output.err > output.out &&
      grep "Untracked working tree file .B. would be overwritten" output.err
 '
+fi
 
 test_done
-- 
1.6.2.rc0.28.g1f0fe8


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no  filesystem mode support
  2009-02-11  9:51 [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no filesystem mode support Alex Riesen
@ 2009-02-11 10:09 ` Junio C Hamano
  2009-02-11 11:05   ` Alex Riesen
  2009-02-11 10:09 ` Johannes Sixt
  1 sibling, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2009-02-11 10:09 UTC (permalink / raw)
  To: Alex Riesen; +Cc: Git Mailing List, Johannes Schindelin

Alex Riesen <raa.lkml@gmail.com> writes:

> Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> ---
>
> I'm honestly sorry for my contributions. They seem to be exclusively
> in the "make Git work in Windows" area.  Depressing.
>
>  t/t3400-rebase.sh |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)

I wonder if you should be fixing the tests with "update-index --chmod"
instead...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no filesystem mode support
  2009-02-11  9:51 [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no filesystem mode support Alex Riesen
  2009-02-11 10:09 ` Junio C Hamano
@ 2009-02-11 10:09 ` Johannes Sixt
  2009-02-11 10:53   ` Alex Riesen
  1 sibling, 1 reply; 6+ messages in thread
From: Johannes Sixt @ 2009-02-11 10:09 UTC (permalink / raw)
  To: Alex Riesen; +Cc: Git Mailing List, Johannes Schindelin, Junio C Hamano

Alex Riesen schrieb:
> Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> ---
> 
> I'm honestly sorry for my contributions. They seem to be exclusively
> in the "make Git work in Windows" area.  Depressing.
> 
>  t/t3400-rebase.sh |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)

Very interesting. This test works unmodified here. On the other hand, I
have to skip the entire t4129-apply-samemode.sh.

-- Hannes

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no  filesystem mode support
  2009-02-11 10:09 ` Johannes Sixt
@ 2009-02-11 10:53   ` Alex Riesen
  2009-02-11 11:30     ` Johannes Sixt
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Riesen @ 2009-02-11 10:53 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: Git Mailing List, Johannes Schindelin, Junio C Hamano

2009/2/11 Johannes Sixt <j.sixt@viscovery.net>:
> Alex Riesen schrieb:
>>
>> I'm honestly sorry for my contributions. They seem to be exclusively
>> in the "make Git work in Windows" area.  Depressing.
>>
>>  t/t3400-rebase.sh |    5 +++++
>>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> Very interesting. This test works unmodified here. On the other hand, I
> have to skip the entire t4129-apply-samemode.sh.
>

hmm... These seem to work here. I have to use Cygwin. Do you use the
native port?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no  filesystem mode support
  2009-02-11 10:09 ` Junio C Hamano
@ 2009-02-11 11:05   ` Alex Riesen
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Riesen @ 2009-02-11 11:05 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List, Johannes Schindelin

2009/2/11 Junio C Hamano <gitster@pobox.com>:
> Alex Riesen <raa.lkml@gmail.com> writes:
>
>> Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
>> ---
>>
>> I'm honestly sorry for my contributions. They seem to be exclusively
>> in the "make Git work in Windows" area.  Depressing.
>>
>>  t/t3400-rebase.sh |    5 +++++
>>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> I wonder if you should be fixing the tests with "update-index --chmod"
> instead...
>

Well, mostly these should work independent of the filesystem (except
for the cases when the index is checked out later). They seem to, and
they look like they should, too. See t4014-format-patch, for one.

But you're right. I should have reviewed them earlier. Anyway, there is
not many tests which have "--chmod" in them:
t4006-diff-mode.sh, t4014-format-patch.sh, t6031-merge-recursive.sh,
and t9500-gitweb-standalone-no-errors.sh.
The t4006 does not bother to look at working tree (good),
t4014 is good (looks like its ignoring modes altogether),
t6031 uses --chmod to augment the chmod useless on FAT-like fs
(seem to be an earlier fix for the same problem).

What's more interesting is the use of chmod for index mode change purpose,
which should be reviewed regularly (and I do that only when it breaks.
Lazy boom, I am...)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no filesystem mode support
  2009-02-11 10:53   ` Alex Riesen
@ 2009-02-11 11:30     ` Johannes Sixt
  0 siblings, 0 replies; 6+ messages in thread
From: Johannes Sixt @ 2009-02-11 11:30 UTC (permalink / raw)
  To: Alex Riesen; +Cc: Git Mailing List, Johannes Schindelin, Junio C Hamano

Alex Riesen schrieb:
> 2009/2/11 Johannes Sixt <j.sixt@viscovery.net>:
>> Alex Riesen schrieb:
>>> I'm honestly sorry for my contributions. They seem to be exclusively
>>> in the "make Git work in Windows" area.  Depressing.
>>>
>>>  t/t3400-rebase.sh |    5 +++++
>>>  1 files changed, 5 insertions(+), 0 deletions(-)
>> Very interesting. This test works unmodified here. On the other hand, I
>> have to skip the entire t4129-apply-samemode.sh.
>>
> 
> hmm... These seem to work here. I have to use Cygwin. Do you use the
> native port?

Yes. And the reason why the test does not fail here is because the mode
change is outright ignored, and the test doesn't check whether the result
meets the expectations.

-- Hannes

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-11 11:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11  9:51 [PATCH] Disable filemode rebase tests in t3400-rebase.sh if no filesystem mode support Alex Riesen
2009-02-11 10:09 ` Junio C Hamano
2009-02-11 11:05   ` Alex Riesen
2009-02-11 10:09 ` Johannes Sixt
2009-02-11 10:53   ` Alex Riesen
2009-02-11 11:30     ` Johannes Sixt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.