Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
0accdc4f
Commit
0accdc4f
authored
17 years ago
by
Elena Gryaznova
Browse files
Options
Downloads
Patches
Plain Diff
b=14620
re-vert att. 14680
parent
b5dad346
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lustre/tests/test-framework.sh
+7
-11
7 additions, 11 deletions
lustre/tests/test-framework.sh
with
7 additions
and
11 deletions
lustre/tests/test-framework.sh
+
7
−
11
View file @
0accdc4f
...
...
@@ -121,10 +121,6 @@ case `uname -r` in
*
)
EXT
=
".ko"
;
USE_QUOTA
=
yes
;;
esac
have_modules
()
{
lsmod |
grep
-q
lnet
}
load_module
()
{
module
=
$1
shift
...
...
@@ -143,8 +139,11 @@ load_modules() {
# use modprobe
return
0
fi
# we already loaded ?
have_modules
&&
return
0
if
[
"
$HAVE_MODULES
"
=
true
]
;
then
# we already loaded
return
0
fi
HAVE_MODULES
=
true
echo
Loading modules from
$LUSTRE
load_module ../lnet/libcfs/libcfs
...
...
@@ -235,6 +234,7 @@ unload_modules() {
wait_for_lnet
||
return
3
fi
fi
HAVE_MODULES
=
false
LEAK_LUSTRE
=
$(
dmesg |
tail
-n
30 |
grep
"obd mem.*leaked"
||
true
)
LEAK_PORTALS
=
$(
dmesg |
tail
-n
20 |
grep
"Portals memory leaked"
||
true
)
...
...
@@ -1075,9 +1075,7 @@ equals_msg() {
log
()
{
echo
"
$*
"
local
HAVE_MODULES
=
""
lsmod |
grep
lnet
>
/dev/null
||
{
load_modules
&&
HAVE_MODULES
=
"yes"
;
}
lsmod |
grep
lnet
>
/dev/null
||
load_modules
local
MSG
=
"
$*
"
# Get rif of '
...
...
@@ -1092,8 +1090,6 @@ log() {
for
NODE
in
$NODES
;
do
do_node
$NODE
$LCTL
mark
"
$MSG
"
2> /dev/null
||
true
done
[
-z
"
$HAVE_MODULES
"
]
||
unload_modules
}
trace
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment