summaryrefslogtreecommitdiffhomepage
path: root/tools/vm/zone.sh
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-04-20 15:47:16 -0700
committergVisor bot <gvisor-bot@google.com>2020-04-20 15:48:27 -0700
commit1a597e01bed5d5fb30b3d444e0a23669c5587235 (patch)
tree9fb4a801399ba8713fc6c3d2b79046f26e06023a /tools/vm/zone.sh
parent07b1b4cc98552a7d45d673ce1e4d1222bbffca7d (diff)
Add a functional vm_test for root_test.
This change renames the tools/images directory to tools/vm for clarity, and adds a functional vm_test. Sharding is also added to the same test, and some documentation added around key flags & variables to describe how they work. Subsequent changes will add vm_tests for other cases, such as the runtime tests. PiperOrigin-RevId: 307492245
Diffstat (limited to 'tools/vm/zone.sh')
-rwxr-xr-xtools/vm/zone.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/vm/zone.sh b/tools/vm/zone.sh
new file mode 100755
index 000000000..79569fb19
--- /dev/null
+++ b/tools/vm/zone.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Copyright 2020 The gVisor Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+exec gcloud config get-value compute/zone