aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell
diff options
context:
space:
mode:
authorGravatar David Ostrovsky <david@ostrovsky.org>2018-05-02 03:30:11 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-02 03:31:48 -0700
commit4ee7f114387187c8b578b7f41674b9e68593d20e (patch)
tree45d8e6ab7ed80c093a6675c89bb0c1c22c74035f /src/test/shell
parent96c9a289dbfd2f7b107bb82b1353cb965393c584 (diff)
remote: introduce --disk_cache_flag
Consolidate the --experimental_local_disk_cache and --experimental_local_disk_cache_path flags into a single --disk_cache= flag. Also, create the cache directory if it doesn't exist. RELNOTES: We replaced the --experimental_local_disk_cache and --experimental_local_disk_cache_path flags into a single --disk_cache flag. Additionally, Bazel now tries to create the disk cache directory if it doesn't exist. Closes #5119. PiperOrigin-RevId: 195070550
Diffstat (limited to 'src/test/shell')
-rw-r--r--src/test/shell/bazel/BUILD4
-rwxr-xr-xsrc/test/shell/bazel/disk_cache_test.sh (renamed from src/test/shell/bazel/local_action_cache_test.sh)4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/shell/bazel/BUILD b/src/test/shell/bazel/BUILD
index f9c51e0e88..bfa6d6cd93 100644
--- a/src/test/shell/bazel/BUILD
+++ b/src/test/shell/bazel/BUILD
@@ -332,9 +332,9 @@ sh_test(
)
sh_test(
- name = "local_action_cache_test",
+ name = "disk_cache_test",
size = "small",
- srcs = ["local_action_cache_test.sh"],
+ srcs = ["disk_cache_test.sh"],
data = [":test-deps"],
)
diff --git a/src/test/shell/bazel/local_action_cache_test.sh b/src/test/shell/bazel/disk_cache_test.sh
index 60c9c4ecc1..ef224cafef 100755
--- a/src/test/shell/bazel/local_action_cache_test.sh
+++ b/src/test/shell/bazel/disk_cache_test.sh
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-# Test the local action cache
+# Test the local disk cache
#
# Load the test setup defined in the parent directory
@@ -27,7 +27,7 @@ function test_local_action_cache() {
local execution_file="${TEST_TMPDIR}/run.log"
local input_file="foo.in"
local output_file="bazel-genfiles/foo.txt"
- local flags="--experimental_local_disk_cache_path=$cache --experimental_local_disk_cache"
+ local flags="--disk_cache=$cache"
rm -rf $cache
mkdir $cache