From 7ad18e6437970c53e0f94664a21e8aad1594361a Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 22 Apr 2015 01:57:33 +0200 Subject: Avoid writing build.json during a test. The test environment might be read only, so let's not modify a file just for running a test. --- tools/buildgen/generate_projects.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/buildgen/generate_projects.sh b/tools/buildgen/generate_projects.sh index c745edb797..cdea1f9319 100755 --- a/tools/buildgen/generate_projects.sh +++ b/tools/buildgen/generate_projects.sh @@ -40,7 +40,9 @@ cd `dirname $0`/../.. mako_renderer=tools/buildgen/mako_renderer.py gen_build_json=test/core/end2end/gen_build_json.py -tools/buildgen/build-cleaner.py build.json +if [ "x$TEST" != "x" ] ; then + tools/buildgen/build-cleaner.py build.json +fi end2end_test_build=`mktemp /tmp/genXXXXXX` $gen_build_json > $end2end_test_build -- cgit v1.2.3