From d755f5b52024e255787d180bbca60c09192a8850 Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Mon, 9 Nov 2015 22:03:34 -0800 Subject: [PATCH] suppress warning output in a unit test test_write_builder_after_device_removal() wasn't setting a default min_part_hours so a warnign was printed. Explicitly adding a min_part_hours suppresses the warning Change-Id: I6f234b72c34e066abb91f28e6eacf50e29be8842 --- test/unit/cli/test_ringbuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/cli/test_ringbuilder.py b/test/unit/cli/test_ringbuilder.py index d6c1c15e27..f8911ad21a 100644 --- a/test/unit/cli/test_ringbuilder.py +++ b/test/unit/cli/test_ringbuilder.py @@ -1796,7 +1796,7 @@ class TestCommands(unittest.TestCase, RunSwiftRingBuilderMixin): os.path.basename(self.tmpfile) + ".ring.gz") os.remove(self.tmpfile) # loses file... - argv = ["", backup_file, "write_builder"] + argv = ["", backup_file, "write_builder", "24"] self.assertEqual(ringbuilder.main(argv), None) def test_warn_at_risk(self):