Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: tests/run_isolated_smoke_test.py

Issue 23380003: Fix run_isolated_smoke_test to work when /tmp is on a separate partition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/run_isolated_smoke_test.py
diff --git a/tests/run_isolated_smoke_test.py b/tests/run_isolated_smoke_test.py
index 662e8d72e2de7812fb9a4ad2f4ea2c2d3f193213..62f5b562e44e4cd65df8ea9b369162a4a27451e0 100755
--- a/tests/run_isolated_smoke_test.py
+++ b/tests/run_isolated_smoke_test.py
@@ -10,7 +10,6 @@ import os
import shutil
import subprocess
import sys
-import tempfile
import unittest
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -65,7 +64,8 @@ def write_json(filepath, data):
class RunSwarmStep(unittest.TestCase):
def setUp(self):
- self.tempdir = tempfile.mkdtemp(prefix='run_isolated_smoke_test')
+ self.tempdir = run_isolated.make_temp_dir(
+ 'run_isolated_smoke_test', ROOT_DIR)
logging.debug(self.tempdir)
# run_isolated.zip executable package.
self.run_isolated_zip = os.path.join(self.tempdir, 'run_isolated.zip')
@@ -182,7 +182,7 @@ class RunSwarmStep(unittest.TestCase):
def test_download_isolated(self):
out_dir = None
try:
- out_dir = tempfile.mkdtemp()
+ out_dir = run_isolated.make_temp_dir('run_isolated_smoke_test', ROOT_DIR)
# Store the required files.
self._store('file1.txt')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698