2755: Adjust arv-put test invocation.
authorBrett Smith <brett@curoverse.com>
Mon, 2 Jun 2014 14:54:43 +0000 (10:54 -0400)
committerBrett Smith <brett@curoverse.com>
Mon, 2 Jun 2014 14:54:43 +0000 (10:54 -0400)
This method works better with the new test layout.

sdk/python/tests/test_arv_put.py

index bea622046a2784f32863d689767be5346beb5db5..e55d97dba039ebb01cb2f15ec662d4669282f613 100644 (file)
@@ -422,7 +422,7 @@ class ArvPutIntegrationTest(unittest.TestCase):
         datadir = tempfile.mkdtemp()
         with open(os.path.join(datadir, "foo"), "w") as f:
             f.write("The quick brown fox jumped over the lazy dog")
-        p = subprocess.Popen(["./bin/arv-put", datadir],
+        p = subprocess.Popen([sys.executable, arv_put.__file__, datadir],
                              stdout=subprocess.PIPE)
         (arvout, arverr) = p.communicate()
         self.assertEqual(p.returncode, 0)