Change in vdsm[master]: tests: Remove cPopenTests.py
gerrit-hooks has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 3: * Update Tracker::IGNORE, no bug url/s found * Set MODIFIED::IGNORE, no Bug-Url found. -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Edward Haas Gerrit-Reviewer: Francesco Romani Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
Dan Kenigsberg has submitted this change and it was merged. Change subject: tests: Remove cPopenTests.py .. tests: Remove cPopenTests.py We kept an old and broken version of cpopen tests in vdsm when cpopen was separated into a standalone project. People who like to test cpopen are invited to send patches that that project. For reference, here are CPopen tests: https://github.com/oVirt/cpopen/blob/master/tests/tests.py Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Signed-off-by: Nir SofferReviewed-on: https://gerrit.ovirt.org/65407 Continuous-Integration: Jenkins CI Reviewed-by: Edward Haas Reviewed-by: Francesco Romani Reviewed-by: Irit Goihman Reviewed-by: Piotr Kliczewski Reviewed-by: Dan Kenigsberg --- M tests/Makefile.am M tests/README D tests/cPopenTests.py 3 files changed, 4 insertions(+), 178 deletions(-) Approvals: Piotr Kliczewski: Looks good to me, but someone else must approve Nir Soffer: Verified Jenkins CI: Passed CI tests Irit Goihman: Looks good to me, but someone else must approve Dan Kenigsberg: Looks good to me, approved Francesco Romani: Looks good to me, but someone else must approve Edward Haas: Looks good to me, but someone else must approve -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir Soffer Gerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Edward Haas Gerrit-Reviewer: Francesco Romani Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
Dan Kenigsberg has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Edward Haas Gerrit-Reviewer: Francesco Romani Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
Piotr Kliczewski has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Edward Haas Gerrit-Reviewer: Francesco Romani Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
Irit Goihman has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Edward Haas Gerrit-Reviewer: Francesco Romani Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
Francesco Romani has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Edward Haas Gerrit-Reviewer: Francesco Romani Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
Edward Haas has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Edward Haas Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
gerrit-hooks has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 2: * Update tracker: IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.6', 'ovirt-4.0']) -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
Nir Soffer has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 1: Verified+1 -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: Dan Kenigsberg Gerrit-Reviewer: Irit Goihman Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer Gerrit-Reviewer: Piotr Kliczewski Gerrit-Reviewer: Yaniv Bronhaim Gerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
gerrit-hooks has posted comments on this change. Change subject: tests: Remove cPopenTests.py .. Patch Set 1: * Update tracker: IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.6', 'ovirt-4.0']) -- To view, visit https://gerrit.ovirt.org/65407 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir SofferGerrit-Reviewer: gerrit-hooks Gerrit-HasComments: No ___ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org
Change in vdsm[master]: tests: Remove cPopenTests.py
Nir Soffer has uploaded a new change for review. Change subject: tests: Remove cPopenTests.py .. tests: Remove cPopenTests.py We kept an old and broken version of cpopen tests in vdsm when cpopen was separated into a standalone project. People who like to test cpopen are invited to send patches that that project. For reference, here are CPopen tests: https://github.com/oVirt/cpopen/blob/master/tests/tests.py Change-Id: I9dc384d6e84ce5f09573be32ea6247c6ef834836 Signed-off-by: Nir Soffer--- M tests/Makefile.am M tests/README D tests/cPopenTests.py 3 files changed, 4 insertions(+), 178 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/07/65407/1 diff --git a/tests/Makefile.am b/tests/Makefile.am index 7e88898..e566463 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -44,7 +44,6 @@ blockVolumeTests.py \ bridgeTests.py \ bulk_sampling_test.py \ - cPopenTests.py \ capsTests.py \ clientifTests.py \ cmdutilsTests.py \ @@ -168,7 +167,6 @@ blocksdTests.py \ bridgeTests.py \ bulk_sampling_test.py \ - cPopenTests.py \ clientifTests.py \ deviceTests.py \ devices/parsing/complex_vm_tests.py \ diff --git a/tests/README b/tests/README index 2e771c0..bf0d99d 100644 --- a/tests/README +++ b/tests/README @@ -13,9 +13,10 @@ From within an installed directory: ./run_tests.sh *.py -Individual files or test cases can be specified: -./run_tests.sh cPopenTests.py -./run_tests.sh cPopenTests.py:TestCPopen.testEcho +Individual files, test cases class or test function can be specified: +./run_tests.sh foo_test.py +./run_tests.sh foo_test:TestBar +./run_tests.sh foo_test:TestBar.test_baz Enabling slow tests: --- diff --git a/tests/cPopenTests.py b/tests/cPopenTests.py deleted file mode 100644 index 0648fba..000 --- a/tests/cPopenTests.py +++ /dev/null @@ -1,173 +0,0 @@ -# -# Copyright 2012 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# -from __future__ import print_function -import os -import sys -import subprocess -from nose.plugins.skip import SkipTest - -from testlib import VdsmTestCase as TestCaseBase - -EXT_ECHO = "/bin/echo" - -if __name__ != "__main__": -# This will not be available when we use this module as a subprocess -from cpopen import CPopen - - -class TestCPopen(TestCaseBase): -def testEcho(self): -data = "Hello" -p = CPopen([EXT_ECHO, "-n", data]) -p.wait() -self.assertTrue(p.returncode == 0, -"Process failed: %s" % os.strerror(p.returncode)) -self.assertEquals(p.stdout.read(), data) - -def testCat(self): -path = "/etc/passwd" -p = CPopen(["cat", path]) -p.wait() -self.assertTrue(p.returncode == 0, -"Process failed: %s" % os.strerror(p.returncode)) -with open(path, "r") as f: -self.assertEquals(p.stdout.read(), f.read()) - -def _subTest(self, name, params, *args, **kwargs): -p = CPopen(["python", __file__, name] + params, *args, **kwargs) -p.wait() -self.assertTrue(p.returncode == 0, -"Process failed: %s" % os.strerror(p.returncode)) -self.assertEquals(p.stdout.read().strip(), "True") - -def testCloseFDs(self): -fds = os.pipe() -try: -self._subTest("fds", [str(fds[1])], close_fds=True) -finally: -os.close(fds[0]) -os.close(fds[1]) - -def testNoCloseFds(self): -fds = os.pipe() -try: -self._subTest("nofds", [str(fds[1])], close_fds=False) -finally: -os.close(fds[0]) -os.close(fds[1]) - -def testEnv(self): -env = os.environ.copy() -env["TEST"] = "True" -self._subTest("env", [], env=env) - -def testCwd(self): -cwd = "/proc" -p = CPopen(["python", "-c", "import os; print os.getcwd()"], cwd=cwd) -p.wait() -self.assertTrue(p.returncode == 0, -"Process failed: %s" %