Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nemu3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
nemu3
Commits
8fbf9bd2
Commit
8fbf9bd2
authored
Jul 28, 2010
by
Martín Ferrari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable non-working test
parent
f58fac72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
t/test_routing.py
t/test_routing.py
+3
-2
No files found.
t/test_routing.py
View file @
8fbf9bd2
...
...
@@ -5,12 +5,13 @@ import netns, test_util
import
os
,
unittest
class
TestRouting
(
unittest
.
TestCase
):
@
test_util
.
skip
(
"Programatic detection of duplicate routes not implemented"
)
def
test_base_routing
(
self
):
node
=
netns
.
Node
(
nonetns
=
True
)
routes
=
node
.
get_routes
()
routes
=
node
.
get_routes
()
# main netns routes!
if
(
len
(
routes
)):
self
.
assertRaises
(
RuntimeError
,
node
.
add_route
,
routes
[
0
])
routes
[
0
].
interface
+=
1
# should be enough to make it unique
routes
[
0
].
metric
+=
1
# should be enough to make it unique
self
.
assertRaises
(
RuntimeError
,
node
.
del_route
,
routes
[
0
])
@
test_util
.
skipUnless
(
os
.
getuid
()
==
0
,
"Test requires root privileges"
)
...
...
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