Re: [PATCH v5 09/12] branch: add --column

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

 



Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> writes:

> +test_expect_success 'git branch -v with column.ui ignored' '
> +	git config column.ui column &&
> +	COLUMNS=80 git branch -v | cut -c -10 >actual &&
> +	git config --unset column.ui &&
> +	cat >expected <<\EOF &&
> +  a/b/c   
> +  abc     
> +  bam     
> +  bar     
> +  foo     
> +  j/k     
> +  l       
> +  m/m     
> +* master  
> +  master2 
> +  n       
> +  o/o     
> +  o/p     
> +  q       
> +  r       
> +EOF

For a test like these where you expect whitespaces at the end, please make
sure that these whitespaces are visible to people who read test scripts,
by doing something like this instead:

	sed -e 's/#$//' >expected <<\EOF
          a/b/c   #
          abc     #
          bam     #
          bar     #
          foo     #
        EOF

Thanks.
--
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]