Re: Improve EXPECT/EXPECT_WITHIN result check in tests

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

 



> Would it be ok to change all regular expression checks to something like
> this in include.rc ?
> 
>      if [[ "$a" =~ ^$e$ ]]; then
> 
> This will allow using regular expressions in EXPECT and EXPECT_WITHIN,
> but will enforce full answer match in all cases, avoiding some possible
> side effects.
> 
> This needs some changes in many tests, but I think it's worth doing.
> 
> What do you think ?

I think it's worth it, and AFAICT it won't even require changing that
many tests.
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux