Re: [PATCH v2] tests: add initial bash completion tests

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

 



2012/4/13 SZEDER Gábor <szeder@xxxxxxxxxx>:

>> +test_expect_success 'basic' '
>> +     run_completion "git \"\"" &&
>> +     # built-in
>> +     grep -q "^add \$" out &&
>> +     # script
>> +     grep -q "^filter-branch \$" out &&
>> +     # plumbing
>> +     ! grep -q "^ls-files \$" out
>
> The && is missing here at the end of the line.

Right.

>> +     run_completion "git f" &&
>> +     ! grep -q -v "^f" out
>
> grep is not a git command, so I'm not sure, but shouldn't these use
> 'test_must_fail grep' instead of '! grep'?

I'm not sure. Junio has already queued this, maybe you should send a
patch on top of that.

Cheers.

-- 
Felipe Contreras
--
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]