]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Merge branch 'en/and-cascade-tests'
authorJunio C Hamano <gitster@pobox.com>
Wed, 24 Nov 2010 23:51:49 +0000 (15:51 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Nov 2010 23:51:49 +0000 (15:51 -0800)
* en/and-cascade-tests: (25 commits)
  t4124 (apply --whitespace): use test_might_fail
  t3404: do not use 'describe' to implement test_cmp_rev
  t3404 (rebase -i): introduce helper to check position of HEAD
  t3404 (rebase -i): move comment to description
  t3404 (rebase -i): unroll test_commit loops
  t3301 (notes): use test_expect_code for clarity
  t1400 (update-ref): use test_must_fail
  t1502 (rev-parse --parseopt): test exit code from "-h"
  t6022 (renaming merge): chain test commands with &&
  test-lib: introduce test_line_count to measure files
  tests: add missing &&, batch 2
  tests: add missing &&
  Introduce sane_unset and use it to ensure proper && chaining
  t7800 (difftool): add missing &&
  t7601 (merge-pull-config): add missing &&
  t7001 (mv): add missing &&
  t6016 (rev-list-graph-simplify-history): add missing &&
  t5602 (clone-remote-exec): add missing &&
  t4026 (color): remove unneeded and unchained command
  t4019 (diff-wserror): add lots of missing &&
  ...

Conflicts:
t/t7006-pager.sh

14 files changed:
1  2 
t/README
t/annotate-tests.sh
t/t0003-attributes.sh
t/t1011-read-tree-sparse-checkout.sh
t/t4015-diff-whitespace.sh
t/t4034-diff-words.sh
t/t4103-apply-binary.sh
t/t5503-tagfollow.sh
t/t556x_common
t/t7004-tag.sh
t/t7006-pager.sh
t/t7810-grep.sh
t/t9300-fast-import.sh
t/test-lib.sh

diff --cc t/README
Simple merge
Simple merge
index e75153bdea05d2e34570aaf03fbb3902694ddedf,7590b453db0503556c53962a2e44071a13c3d96e..ebbc7554a7d4dce4c2ed33a79f5d4feb3a520f05
@@@ -60,19 -57,9 +60,19 @@@ test_expect_success 'attribute test' 
  
  '
  
 +test_expect_success 'core.attributesfile' '
 +      attr_check global unspecified &&
 +      git config core.attributesfile "$HOME/global-gitattributes" &&
 +      attr_check global global &&
 +      git config core.attributesfile "~/global-gitattributes" &&
 +      attr_check global global &&
 +      echo "global test=precedence" >> .gitattributes &&
 +      attr_check global precedence
 +'
 +
  test_expect_success 'attribute test: read paths from stdin' '
  
-       cat <<EOF > expect
+       cat <<EOF > expect &&
  f: test: f
  a/f: test: f
  a/c/f: test: f
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc t/t556x_common
index 51287d89d8deb27ae2ae49fec84268422377eb29,03dcfb10c9cbb7821195dacad5230ab9cb7ac382..82926cfdb7b7c6a86ab7d73efdfa327a6be28c83
@@@ -50,9 -50,9 +50,9 @@@ get_static_files() 
  }
  
  SMART=smart
 -export GIT_HTTP_EXPORT_ALL=1
 +GIT_HTTP_EXPORT_ALL=1 && export GIT_HTTP_EXPORT_ALL
  test_expect_success 'direct refs/heads/master not found' '
-       log_div "refs/heads/master"
+       log_div "refs/heads/master" &&
        GET refs/heads/master "404 Not Found"
  '
  test_expect_success 'static file is ok' '
@@@ -73,9 -73,9 +73,9 @@@ test_expect_success 'export if git-daem
          get_static_files "200 OK"
  '
  SMART=smart
 -export GIT_HTTP_EXPORT_ALL=1
 +GIT_HTTP_EXPORT_ALL=1 && export GIT_HTTP_EXPORT_ALL
  test_expect_success 'static file if http.getanyfile true is ok' '
-       log_div "getanyfile true"
+       log_div "getanyfile true" &&
        config http.getanyfile true &&
        get_static_files "200 OK"
  '
diff --cc t/t7004-tag.sh
Simple merge
index 5641b595596ea462ec649c531e7173709a012274,7d00d49d0da6487bec345176411e1f51e712f137..e9d8b9110d3bb14a0c1d5b325b875abce57b3318
@@@ -11,8 -10,38 +11,8 @@@ cleanup_fail() 
        (exit 1)
  }
  
 -test_expect_success 'set up terminal for tests' '
 -      rm -f stdout_is_tty ||
 -      cleanup_fail &&
 -
 -      if test -t 1
 -      then
 -              >stdout_is_tty
 -      elif
 -              test_have_prereq PERL &&
 -              "$PERL_PATH" "$TEST_DIRECTORY"/t7006/test-terminal.perl \
 -                      sh -c "test -t 1"
 -      then
 -              >test_terminal_works
 -      fi
 -'
 -
 -if test -e stdout_is_tty
 -then
 -      test_terminal() { "$@"; }
 -      test_set_prereq TTY
 -elif test -e test_terminal_works
 -then
 -      test_terminal() {
 -              "$PERL_PATH" "$TEST_DIRECTORY"/t7006/test-terminal.perl "$@"
 -      }
 -      test_set_prereq TTY
 -else
 -      say "# no usable terminal, so skipping some tests"
 -fi
 -
  test_expect_success 'setup' '
-       unset GIT_PAGER GIT_PAGER_IN_USE;
+       sane_unset GIT_PAGER GIT_PAGER_IN_USE &&
        test_might_fail git config --unset core.pager &&
  
        PAGER="cat >paginated.out" &&
@@@ -219,8 -253,8 +219,8 @@@ parse_args() 
  test_default_pager() {
        parse_args "$@"
  
 -      $test_expectation SIMPLEPAGERTTY "$cmd - default pager is used by default" "
 +      $test_expectation SIMPLEPAGER,TTY "$cmd - default pager is used by default" "
-               unset PAGER GIT_PAGER;
+               sane_unset PAGER GIT_PAGER &&
                test_might_fail git config --unset core.pager &&
                rm -f default_pager_used ||
                cleanup_fail &&
diff --cc t/t7810-grep.sh
Simple merge
Simple merge
diff --cc t/test-lib.sh
Simple merge