From 863038905ce87c989e81fa189b8088968d6d6a79 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 3 Mar 2019 10:34:09 -0500 Subject: [PATCH] Tests: Version test removed - Veriying that the diag command emits the correct commit SHA1 creates sporadic failures when CMake has not been run against the current commit, and this is not a good test. --- test/version.t | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/test/version.t b/test/version.t index 1076aad86..1b852d6a5 100755 --- a/test/version.t +++ b/test/version.t @@ -82,29 +82,6 @@ class TestVersion(TestCase): _, hash, _ = run_cmd_wait(git_cmd) return hash.rstrip("\n") - def test_under_version(self): - """_version and diagnostics output expected version and syntax""" - code, out, err = self.t("_version") - - # version = "x.x.x (git-hash)" or simply "x.x.x" - # corresponding to "compiled from git" or "compiled from tarball" - version = out.split() - - if 2 >= len(version) > 0: - git = version[1] - git_expected = "({0})".format(self.slurp_git()) - self.assertEqual(git_expected, git) - else: - raise ValueError("Unexpected output from _version '{0}'".format( - out)) - - ver = version[0] - ver_expected = self.slurp() - self.assertEqual(ver_expected, ver) - - code, out, err = self.t.diag() - self.assertIn(ver_expected, out) - def test_version_option(self): """Verify that 'task --version' returns something valid""" code, out, err = self.t("--version")