OSDN Git Service

Use the right version in the rule deletion test.
authorLorenzo Colitti <lorenzo@google.com>
Mon, 19 May 2014 21:31:50 +0000 (14:31 -0700)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 2 Feb 2015 08:47:29 +0000 (17:47 +0900)
Change-Id: I54e53cf7751f1fce464c72d5a0468bba553f2cfa

tests/net_test/mark_test.py

index 0954669..3d1ca1c 100755 (executable)
@@ -1646,7 +1646,7 @@ class RulesTest(net_test.NetworkTest):
       self.iproute.FwmarkRule(version, False, 300, 302,
                               priority=self.RULE_PRIORITY)
       # Check that the rule pointing at table 301 is still around.
-      attributes = [a for _, a in self.iproute.DumpRules(4)
+      attributes = [a for _, a in self.iproute.DumpRules(version)
                     if a.get("FRA_PRIORITY", 0) == self.RULE_PRIORITY]
       self.assertEquals(1, len(attributes))
       self.assertEquals(301, attributes[0]["FRA_TABLE"])