Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aio_dio_bugs: do not abort when one test has failed #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions aio_dio_bugs/aio_dio_bugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@



# tests is a simple array of "cmd" "arguments"
tests = [["aio-dio-invalidate-failure", "poo"],
["aio-dio-subblock-eof-read", "eoftest"],
["aio-free-ring-with-bogus-nr-pages", ""],
["aio-io-setup-with-nonwritable-context-pointer", ""],
["aio-dio-extend-stat", "file"],
["aio-cve-2016-10044", ""],
]
name = 0
arglist = 1


class aio_dio_bugs(test.test):
version = 5
preserve_srcdir = True
Expand All @@ -31,13 +19,11 @@ def setup(self):
os.chdir(self.srcdir)
utils.make('"CFLAGS=' + self.gcc_flags + '"')

def execute(self, args=''):
def run_once(self, test_name, args=''):
os.chdir(self.tmpdir)
libs = self.autodir + '/deps/libaio/lib/'
ld_path = utils.prepend_path(libs,
utils.environ('LD_LIBRARY_PATH'))
var_ld_path = 'LD_LIBRARY_PATH=' + ld_path
for test in tests:
cmd = self.srcdir + '/' + test[name] + ' ' + args + ' ' \
+ test[arglist]
utils.system(var_ld_path + ' ' + cmd)
cmd = self.srcdir + '/' + test_name + ' ' + args
utils.system(var_ld_path + ' ' + cmd)
14 changes: 13 additions & 1 deletion aio_dio_bugs/control
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,17 @@ The bug was fixed in the fs/direct-io.c completion reworking that appeared
in 2.6.20. This test should fail on 2.6.19.
"""

# tests is a simple array of "cmd" "arguments"
tests = [["aio-dio-invalidate-failure", "poo"],
["aio-dio-subblock-eof-read", "eoftest"],
["aio-free-ring-with-bogus-nr-pages", ""],
["aio-io-setup-with-nonwritable-context-pointer", ""],
["aio-dio-extend-stat", "file"],
["aio-cve-2016-10044", ""],
]
name = 0
arglist = 1

job.run_test('aio_dio_bugs')

for test in tests:
results = job.run_test('aio_dio_bugs', test_name=test[name], tag=test[name], args=test[arglist])