summaryrefslogtreecommitdiff
path: root/ubuntu
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2015-08-12 18:01:38 +0800
committerChase Qi <chase.qi@linaro.org>2015-08-12 18:01:46 +0800
commit18fd21c8aef8430c740f0a78856c72f767279af6 (patch)
tree1c148f0d6b4fea564729c6b61dfc97f777954df3 /ubuntu
parentdc60a0183bb6f48431ebc135d663e61899c6cb32 (diff)
downloadtest-definitions-pipe-18fd21c8aef8430c740f0a78856c72f767279af6.tar.gz
ubuntu: fix fio test failure on ubuntu developer image
fio test will fail on ubuntu developer image. Error message: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set Tried a fix on the permission issue, then got more sudo related issues. Since we run tests with root user, I see no point in using sudo. Removing it to work around this error. Change-Id: Id2d52ee558960ef4985e96c14cbe524004727dfd Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'ubuntu')
-rwxr-xr-xubuntu/scripts/fio-test.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/ubuntu/scripts/fio-test.py b/ubuntu/scripts/fio-test.py
index d8df998..9a35bbb 100755
--- a/ubuntu/scripts/fio-test.py
+++ b/ubuntu/scripts/fio-test.py
@@ -31,7 +31,7 @@ os.chdir(home_path)
print os.getcwd()
# Save partition layout to a local file for reference
-commands.getstatusoutput("sudo fdisk -l > partition_layout.txt 2>&1")
+commands.getstatusoutput("fdisk -l > partition_layout.txt 2>&1")
device_name = sys.argv[1]
@@ -72,7 +72,7 @@ def fio_existence():
def fio_read():
testcase_name = "fio_bs4kread_iops"
- run_command = "sudo fio -filename=" + device_name + " -rw=read -direct=1 -iodepth 1 -thread -ioengine=psync -bs=4k -numjobs=1 -runtime=10 -group_reporting -name=fio_read > fio_read.txt 2>&1"
+ run_command = "fio -filename=" + device_name + " -rw=read -direct=1 -iodepth 1 -thread -ioengine=psync -bs=4k -numjobs=1 -runtime=10 -group_reporting -name=fio_read > fio_read.txt 2>&1"
print run_command
fio_read_return = commands.getstatusoutput(run_command)
@@ -103,7 +103,7 @@ def fio_read():
def fio_randread():
testcase_name = "fio_randread_iops"
- run_command = "sudo fio -filename=" + device_name + " -rw=randread -direct=1 -iodepth 1 -thread -ioengine=psync -bs=4k -numjobs=1 -runtime=10 -group_reporting -name=fio_randread > fio_randread.txt 2>&1"
+ run_command = "fio -filename=" + device_name + " -rw=randread -direct=1 -iodepth 1 -thread -ioengine=psync -bs=4k -numjobs=1 -runtime=10 -group_reporting -name=fio_randread > fio_randread.txt 2>&1"
print run_command
fio_randread_return = commands.getstatusoutput(run_command)
@@ -134,7 +134,7 @@ def fio_randread():
def fio_write():
testcase_name = "fio_write_iops"
- run_command = "sudo fio -filename=" + device_name + " -rw=write -direct=1 -iodepth 1 -thread -ioengine=psync -bs=4k -numjobs=1 -runtime=10 -group_reporting -name=fio_write > fio_write.txt 2>&1"
+ run_command = "fio -filename=" + device_name + " -rw=write -direct=1 -iodepth 1 -thread -ioengine=psync -bs=4k -numjobs=1 -runtime=10 -group_reporting -name=fio_write > fio_write.txt 2>&1"
print run_command
fio_write_return = commands.getstatusoutput(run_command)
@@ -165,7 +165,7 @@ def fio_write():
def fio_randwrite():
testcase_name = "fio_randwrite_iops"
- run_command = "sudo fio -filename=" + device_name + " -rw=randwrite -direct=1 -iodepth 1 -thread -ioengine=psync -bs=4k -numjobs=1 -runtime=10 -group_reporting -name=fio_randwrite > fio_randwrite.txt 2>&1"
+ run_command = "fio -filename=" + device_name + " -rw=randwrite -direct=1 -iodepth 1 -thread -ioengine=psync -bs=4k -numjobs=1 -runtime=10 -group_reporting -name=fio_randwrite > fio_randwrite.txt 2>&1"
print run_command
fio_randwrite_return = commands.getstatusoutput(run_command)
@@ -196,7 +196,7 @@ def fio_randwrite():
def fio_512k_write():
testcase_name = "fio_512k_write_bandwidth"
- run_command = "sudo fio -filename=" + device_name + " -rw=write -direct=1 -iodepth 1 -thread -ioengine=psync -bs=512k -numjobs=1 -runtime=10 -group_reporting -name=fio_512k_write > fio_512k_write.txt 2>&1"
+ run_command = "fio -filename=" + device_name + " -rw=write -direct=1 -iodepth 1 -thread -ioengine=psync -bs=512k -numjobs=1 -runtime=10 -group_reporting -name=fio_512k_write > fio_512k_write.txt 2>&1"
print run_command
fio_512k_write_return = commands.getstatusoutput(run_command)
@@ -228,7 +228,7 @@ def fio_512k_write():
def fio_512k_read():
testcase_name = "fio_512k_read_bandwidth"
- run_command = "sudo fio -filename=" + device_name + " -rw=read -direct=1 -iodepth 1 -thread -ioengine=psync -bs=512k -numjobs=1 -runtime=10 -group_reporting -name=fio_512k_read > fio_512k_read.txt 2>&1"
+ run_command = "fio -filename=" + device_name + " -rw=read -direct=1 -iodepth 1 -thread -ioengine=psync -bs=512k -numjobs=1 -runtime=10 -group_reporting -name=fio_512k_read > fio_512k_read.txt 2>&1"
print run_command
fio_512k_read_return = commands.getstatusoutput(run_command)