Re: [PATCH 8/8] Fix tests breaking when checkout path contains shell metacharacters

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

 



Johannes Sixt <j.sixt@xxxxxxxxxxxxx> writes:

>>>>  test_expect_success  ".rev_db auto-converted to .rev_map.UUID" "
>>>>  	git-svn fetch -i trunk &&
>>>> +	test -z \"\$(ls \"\$GIT_DIR\"/svn/trunk/.rev_db.* 2>/dev/null)\" &&
>>>> +	expect=\"\$(ls \"\$GIT_DIR\"/svn/trunk/.rev_map.*)\" &&
>>>>  	test -n \"\$expect\" &&
>>>> +	rev_db=\"\$(echo \$expect | sed -e 's,_map,_db,')\" &&
>>>> +	convert_to_rev_db \"\$expect\" \"\$rev_db\" &&
>>>> +	rm -f \"\$expect\" &&
>>>> +	test -f \"\$rev_db\" &&
>>>>  	git-svn fetch -i trunk &&
>>>> +	test -z \"\$(ls \"\$GIT_DIR\"/svn/trunk/.rev_db.* 2>/dev/null)\" &&
>>>> +	test ! -e \"\$GIT_DIR\"/svn/trunk/.rev_db &&
>>>> +	test -f \"\$expect\"
>>>>  	"
>>> While looking at this test: Wouldn't it be easier to just place the whole
>>> thing (and probably similar cases, too) in single-quotes?
>> 
>> To be honest, I fixed all the git-svn tests with a suitably clever vim s///
>> expression, so at the time this way was actually easier :)

Yeah, last night I ran out of energy reviewing things.  The above is
simply too ugly to be acceptable, with or without automated s///
expression.
--
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]

  Powered by Linux