On Thu, 2010-05-13 at 18:08 -0700, Jongki Suwandi wrote:
> b/2676661
> 
> base_partition.partition.unmount_force() called
> 
> utils.system_output('ps -p %s | tail +2' % pid)
> 
> tail's +2 option is no longer valid in newer coreutils
> (http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Old-tail-plus-N-syntax-now-fails).
> Changed to 'sed 1d' instead.

Applied, thanks!

> Signed-off-by: Jongki Suwandi <[email protected]>
> 
> --- autotest/client/bin/base_partition.py     2010-05-13 14:53:57.000000000 
> -0700
> +++ autotest/client/bin/base_partition.py     2010-05-13 14:53:57.000000000 
> -0700
> @@ -718,7 +718,7 @@
>                  m = re.match('(\d+)(.*)', user)
>                  (pid, usage) = (m.group(1), m.group(2))
>                  try:
> -                    ps = utils.system_output('ps -p %s | tail +2' % pid)
> +                    ps = utils.system_output('ps -p %s | sed 1d' % pid)
>                      logging.debug('%s %s %s' % (usage, pid, ps))
>                  except Exception:
>                      pass
> _______________________________________________
> Autotest mailing list
> [email protected]
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to