Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adam Osuchowski
Kea
Commits
6b0532bc
Commit
6b0532bc
authored
Mar 02, 2015
by
Marcin Siodelski
Browse files
Options
Browse Files
Download
Plain Diff
[master] Merge branch 'trac3651'
parents
d85ff308
d19dad45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
src/lib/testutils/README
src/lib/testutils/README
+1
-1
src/lib/testutils/dhcp_test_lib.sh.in
src/lib/testutils/dhcp_test_lib.sh.in
+4
-5
No files found.
src/lib/testutils/README
View file @
6b0532bc
Here is some code used by more than one test. No code is used for
bind10
Here is some code used by more than one test. No code is used for
Kea
itself, only for testing.
src/lib/testutils/dhcp_test_lib.sh.in
View file @
6b0532bc
# Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2014
-2015
Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
...
...
@@ -197,10 +197,9 @@ get_log_messages() {
_GET_LOG_MESSAGES=0
# If log file is not present, the number of occurrences is 0.
if [ -s ${LOG_FILE} ]; then
# Grep log file for the logger message occurrences.
_GET_LOG_MESSAGES=$( grep -o ${msg} ${LOG_FILE} | wc -w )
# Remove whitespaces.
${_GET_LOG_MESSAGES##*[! ]}
# Grep log file for the logger message occurrences and remove
# whitespaces, if any.
_GET_LOG_MESSAGES=$( grep -o ${msg} ${LOG_FILE} | wc -w | tr -d " ")
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment