All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Alexey Kodanev <alexey.kodanev@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] device-drivers/zram: new zram test
Date: Thu, 23 Apr 2015 13:00:04 +0200	[thread overview]
Message-ID: <20150423110004.GB18237@rei.suse.de> (raw)
In-Reply-To: <1427269167-25299-1-git-send-email-alexey.kodanev@oracle.com>

Hi!
> +zram_compress_alg()
> +{
> +	tst_resm TINFO "test that we can set compression algorithm"
> +	local algs=$(cat /sys/block/zram0/comp_algorithm)
> +	tst_resm TINFO "supported algs: $algs"
> +	local i=0
> +	for alg in $zram_algs; do
> +		local sys_path="/sys/block/zram${i}/comp_algorithm"
> +		echo "$alg" >  $sys_path || \
> +			tst_brkm TFAIL "can't set 'lzo' to $sys_path"
                                                   ^
					Shouldn't this be $alg ?
> +		i=$(($i + 1))
> +		tst_resm TINFO "$sys_path = 'lzo' ($i/$dev_num)"
                                             ^
				      Here as well.
> +	done
> +
> +	tst_resm TPASS "test succeeded"
> +}
> +

Otherwise it looks good, acked.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      reply	other threads:[~2015-04-23 11:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-25  7:39 [LTP] [PATCH] device-drivers/zram: new zram test Alexey Kodanev
2015-04-23 11:00 ` Cyril Hrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150423110004.GB18237@rei.suse.de \
    --to=chrubis@suse.cz \
    --cc=alexey.kodanev@oracle.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=vasily.isaenko@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.