Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pmdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Egorov, Sergey (PG/R - Comp Sci & Elec Eng)
pmdk
Commits
0d98c1df
Commit
0d98c1df
authored
4 years ago
by
Lucas A. M. Magalhaes
Browse files
Options
Downloads
Patches
Plain Diff
test: fix pmempool_check/TEST33 when sds is not supported
Signed-off-by:
Lucas A. M. Magalhaes
<
lamm@linux.ibm.com
>
parent
3b4d7529
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/pmempool_check/common.sh
+19
-0
19 additions, 0 deletions
src/test/pmempool_check/common.sh
with
19 additions
and
0 deletions
src/test/pmempool_check/common.sh
+
19
−
0
View file @
0d98c1df
...
...
@@ -12,6 +12,16 @@ rm -f $LOG && touch $LOG
LAYOUT
=
OBJ_LAYOUT
$SUFFIX
POOLSET
=
$DIR
/poolset
pmempool_exe
=
$PMEMPOOL$EXESUFFIX
# pmempool_feature_query_return -- query a feature and return
# the value.
#
# usage: pmempool_feature_query_return <feature>
function
pmempool_feature_query_return
()
{
return
$(
$pmempool_exe
feature
-q
$1
$POOLSET
2>>
$LOG
)
}
# pmemspoil_corrupt_replica_sds -- corrupt shutdown state
#
# usage: pmemspoil_corrupt_replica_sds <replica>
...
...
@@ -39,6 +49,15 @@ function pmempool_check_sds_init() {
PMEMOBJ_CONF
=
"
${
PMEMOBJ_CONF
}
$conf
;"
expect_normal_exit
$PMEMPOOL$EXESUFFIX
create
--layout
=
$LAYOUT
obj
$POOLSET
# If SDS is not enabled at this point is because SDS is not available for
# this device
pmempool_feature_query_return
"SHUTDOWN_STATE"
if
[[
$?
-eq
0
]]
;
then
msg
"
$UNITTEST_NAME
: SKIP: SDS is not available"
exit
0
fi
}
# pmempool_check_sds -- perform shutdown state unittest
...
...
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