Re: [PATCH/RFC] Add test_repo_expect_success for running tests in a new repository

2015-09-21 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy   writes:

> This could be convenient when tests are independent from the rest in the
> same file. Normally we would do this
>
> test_expect_success '...' '
>   git init foo &&
>   (
>   cd foo &&
>   

Re: [PATCH/RFC] Add test_repo_expect_success for running tests in a new repository

2015-09-21 Thread Jeff King
On Sun, Sep 20, 2015 at 08:25:02AM +0700, Nguyễn Thái Ngọc Duy wrote:

> This could be convenient when tests are independent from the rest in the
> same file. Normally we would do this
> 
> test_expect_success '...' '
>   git init foo &&
>   (
>   cd foo &&
>   

[PATCH/RFC] Add test_repo_expect_success for running tests in a new repository

2015-09-19 Thread Nguyễn Thái Ngọc Duy
This could be convenient when tests are independent from the rest in the
same file. Normally we would do this

test_expect_success '...' '
git init foo &&
(
cd foo &&