From e0cddf9750cb94947eef2faa79aa0bd9d30b5256 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Mon, 15 Aug 2016 16:53:06 -0400 Subject: [PATCH] Fix Jenkins test failure --- pavelib/paver_tests/test_paver_bok_choy_cmds.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pavelib/paver_tests/test_paver_bok_choy_cmds.py b/pavelib/paver_tests/test_paver_bok_choy_cmds.py index c8d2343f31..cca28d4802 100644 --- a/pavelib/paver_tests/test_paver_bok_choy_cmds.py +++ b/pavelib/paver_tests/test_paver_bok_choy_cmds.py @@ -212,7 +212,15 @@ class TestPaverPa11yCrawlerCmd(unittest.TestCase): "-a", "data_dir=/edx/app/edxapp/edx-platform/reports/pa11ycrawler/data", ] - self.assertEqual(suite.cmd, expected_cmd) + actual_cmd = suite.cmd + # verify that the final section of this command is for specifying the + # data directory + self.assertEqual(actual_cmd[-2], "-a") + self.assertTrue(actual_cmd[-1].startswith("data_dir=")) + # chop off the `data_dir` argument when comparing, + # since it is highly dependent on who is running this paver command, + # and where it's being run (devstack, jenkins, etc) + self.assertEqual(actual_cmd[0:-2], expected_cmd[0:-2]) @ddt.data( (True, True, None),