File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,24 +7,24 @@ function build_example()
7
7
8
8
function list_mod()
9
9
{
10
- # following list will contain all file names which are not specified in file non-working.
11
- echo ` ls examples/* .ko | awk -F " [/|.]" ' {print $2}' | grep -vFxf .ci/non-working`
10
+ # Filter out the modules specified in non-working
11
+ ls examples/* .ko | awk -F " [/|.]" ' {print $2}' | grep -vFxf .ci/non-working
12
12
}
13
13
14
- # test module 2 times
15
14
function run_mod()
16
15
{
17
- ( sudo insmod " examples/$1 .ko" && sudo rmmod " $1 " ) || exit 1;
18
- ( sudo insmod " examples/$1 .ko" && sudo rmmod " $1 " ) || exit 1;
16
+ # insert/remove twice to ensure resource allocations
17
+ ( sudo insmod " examples/$1 .ko" && sudo rmmod " $1 " ) || exit 1
18
+ ( sudo insmod " examples/$1 .ko" && sudo rmmod " $1 " ) || exit 1
19
19
}
20
20
21
21
function run_examples()
22
22
{
23
23
for module in $( list_mod) ; do
24
- echo " $module "
24
+ echo " Running $module "
25
25
run_mod " $module "
26
26
done
27
27
}
28
28
29
29
build_example
30
- run_examples
30
+ run_examples
You can’t perform that action at this time.
0 commit comments