Skip to content

Commit

Permalink
Prevent error when calling run_pants_with_workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrechevalier83 committed Oct 2, 2019
1 parent de6f22e commit 31162ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/python/pants_test/pants_run_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from contextlib import contextmanager
from dataclasses import dataclass
from operator import eq, ne
from pathlib import Path
from threading import Lock
from typing import Any, List, Optional, Union

Expand Down Expand Up @@ -327,6 +328,8 @@ def run_pants_with_workdir_without_waiting(self, command, workdir, config=None,
ini.write(fp)
args.append('--pants-config-files=' + ini_file_name)

Path('pyproject.toml').touch()

pants_script = [sys.executable, '-m', 'pants']

# Permit usage of shell=True and string-based commands to allow e.g. `./pants | head`.
Expand Down

0 comments on commit 31162ad

Please sign in to comment.