[procps] Re: [PATCH] Improving some regexp in tests for accounting for more, situations.

  • From: Pierre Labastie <pierre.labastie@xxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Sat, 06 Apr 2013 21:10:11 +0200

Le 06/04/2013 20:45, Pierre Labastie a écrit :
 spawn $pmap -X 1
> diff --git a/testsuite/vmstat.test/vmstat.exp 
> b/testsuite/vmstat.test/vmstat.exp
> index 328e2fc..726aade 100644
> --- a/testsuite/vmstat.test/vmstat.exp
> +++ b/testsuite/vmstat.test/vmstat.exp
> @@ -31,7 +31,7 @@ expect_pass "$test" "^disk\[ -\]+reads\[ -\]+writes\[ 
> -\]+IO\[ -\]+\\s+total\\s+
>  
>  # Need a partition
>  set diskstats [ exec cat /proc/diskstats ]
> -regexp "\\s+\\d+\\s+\\d+\\s+\(\[a-z\]+\\d+\)\\s+\(\[0-9\]\[0-9\]+\)" 
> $diskstats -> partition
> +regexp "\\s+\\d+\\s+\\d+\\s+\(\[hd\]d\[a-z\]\\d\)\\s+\(\[0-9\]\[0-9\]+\)" 
> $diskstats -> partition
>  

Sorry, this should be:
+regexp "\\s+\\d+\\s+\\d+\\s+\(\[hs\]d\[a-z\]\\d\)\\s+\(\[0-9\]\[0-9\]+\)" 
$diskstats -> partition

Other related posts: