summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/zram/zram01.sh
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2015-08-31 17:11:55 +0530
committerShuah Khan <shuahkh@osg.samsung.com>2015-09-01 10:51:32 -0600
commit2dfb28e3410d775a687d429f5cadf88e795e7eb6 (patch)
treebc3fa5bf6233989225c2e332bafeb10a89694439 /tools/testing/selftests/zram/zram01.sh
parent9fae100cbd1049057bbc3e3180a6de339b9b73a9 (diff)
selftests/zram: must be run as root
Adding new functionality check_prereqs() to check test must be run as root Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/zram/zram01.sh')
-rwxr-xr-xtools/testing/selftests/zram/zram01.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/zram/zram01.sh b/tools/testing/selftests/zram/zram01.sh
index 2a2475d4b201..b9566a6478a9 100755
--- a/tools/testing/selftests/zram/zram01.sh
+++ b/tools/testing/selftests/zram/zram01.sh
@@ -79,6 +79,7 @@ zram_fill_fs()
echo "zram compression ratio: $(echo "scale=2; $v / 100 " | bc):1: OK"
}
+check_prereqs
zram_load
zram_max_streams
zram_compress_alg