Skip to content

Commit 0a4aad9

Browse files
committed
Make CI validation more verbose
1 parent 42a21d2 commit 0a4aad9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.ci/build-n-run.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ function build_example()
77

88
function list_mod()
99
{
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
1212
}
1313

14-
#test module 2 times
1514
function run_mod()
1615
{
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
1919
}
2020

2121
function run_examples()
2222
{
2323
for module in $(list_mod); do
24-
echo "$module"
24+
echo "Running $module"
2525
run_mod "$module"
2626
done
2727
}
2828

2929
build_example
30-
run_examples
30+
run_examples

0 commit comments

Comments
 (0)