Skip to content

Commit

Permalink
stats/kernel_selftests: remove sigaltstack_stat() for rencently kernel
Browse files Browse the repository at this point in the history
Previously, sigaltstack have not been enabled, so we need special logic to
handle it. But rencently, this case is enabled, so we can remove this logic

fix the following sigaltstack duplication
------------
lizhijian@inn:/result/kernel_selftests/defaults/lkp-hsw-ep4/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/c0bc126f97fb929b3ae02c1c62322645d70eb408/5$
grep -A 2 sigaltstack
/result/kernel_selftests/defaults/lkp-hsw-ep4/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/c0bc126f97fb929b3ae02c1c62322645d70eb408/5/kernel_selftests.json
  "kernel_selftests.sigaltstack./usr/src/linux-selftests-x86_64-rhel-7.2-c0bc126f97fb929b3ae02c1c62322645d70eb408/tools/testing/selftests/sigaltstack/sas.pass":
[
    1
  ],
  "kernel_selftests.sigaltstack.sas.pass": [
    1
  ],
------------

Signed-off-by: Li Zhijian <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
zhijianli88 authored and rli9 committed Jul 4, 2017
1 parent e37ca6d commit fb4644e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions stats/kernel_selftests
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,6 @@ def x86_stat(line, _x86, stats)
end
end

def sigaltstack_stat(line, sigaltstack, stats)
case line
when /gcc -Wall .+ -o (.+)/
sigaltstack['subtest'] = $1
when /^(\[FAIL\]|mmap)/
stats << "sigaltstack.#{sigaltstack['subtest']}.fail: 1"
sigaltstack['subtest'] = nil
when /Test passed/
stats << "sigaltstack.#{sigaltstack['subtest']}.pass: 1"
sigaltstack['subtest'] = nil
when %r{make: Leaving directory .*/(.*)'}
stats << "sigaltstack.#{sigaltstack['subtest']}.skip: 1" if sigaltstack['subtest']
end
end

while (line = STDIN.gets)
line = line.remediate_invalid_byte_sequence(replace: '_') unless line.valid_encoding?

Expand All @@ -89,8 +74,6 @@ while (line = STDIN.gets)
memory_hotplug_stat(line, tests_stats['memory-hotplug'], stats)
elsif testname == 'mount'
mount_stat(line, tests_stats['mount'], stats)
elsif testname == 'sigaltstack'
sigaltstack_stat(line, tests_stats['sigaltstack'], stats)
else
# rli9 FIXME: consider the input has messed text like Entering doesn't match with Leaving
testname = nil
Expand Down Expand Up @@ -124,8 +107,6 @@ while (line = STDIN.gets)
mount_stat(line, tests_stats['mount'], stats)
elsif testname == 'x86'
x86_stat(line, tests_stats['x86'], stats)
elsif testname == 'sigaltstack'
sigaltstack_stat(line, tests_stats['sigaltstack'], stats)
end
end
end
Expand Down

0 comments on commit fb4644e

Please sign in to comment.