have run.php export a temporary directory for tests to use
commite3cac4b4d3bbb22c7ff12a97d218760f81372323
authorAdam Simpkins <simpkins@fb.com>
Wed, 30 Jan 2019 05:28:33 +0000 (29 21:28 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 30 Jan 2019 05:37:18 +0000 (29 21:37 -0800)
tree16b0aed431889b596e87c8915057cc3889969de3
parent784f0ab394f15ecffe8dfaf40653db31961659b2
have run.php export a temporary directory for tests to use

Summary:
Update `hphp/test/run.php` to create a new `test-data` subdirectory inside its
existing temporary directory.  This is intended to allow individual tests to
use this directory for creating any temporary files/directories they need.
Currently many of the tests create temporary files in the source tree, which
is somewhat undesirable.

This exports the test directory path in an `HPHP_TST_TMPDIR` environment
variable, to allow tests to read the path from this variable

This does not update any tests to use this variable yet.  I will update tests
in a subsequent diff.

Reviewed By: markw65

Differential Revision: D13793221

fbshipit-source-id: 3429decfc7ec5c25b5c3960570dec75e5c5bdfec
hphp/test/run.php