Re: [PATCHv6 01/16] test-lib: make test_expect_code a test command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ãvar ArnfjÃrà Bjarmason wrote:
> On Mon, Oct 4, 2010 at 03:50, Jonathan Nieder <jrnieder@xxxxxxxxx> wrote:

>> I suspect the best thing would be to export TEST_DIRECTORY
>> instead of including it inline in the script.
>
> We could do that, but then you couldn't cd to the trash directory and
> manually run the test without exporting the path to TEST_DIRECTORY
> again.

Okay, then how about:

	: ${TEST_DIRECTORY=$(cd ../.. && pwd)}
	. "$TEST_DIRECTORY"/test-lib.sh

i.e., accepting TEST_DIRECTORY from the environment if and only
if it is available?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]