summaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests.sh
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-06-17 17:07:44 -0700
committergVisor bot <gvisor-bot@google.com>2019-06-17 17:09:06 -0700
commit66cc0e9f928218ca642a41fa67bb163197aa1f37 (patch)
tree215b97504cf73fcf58da44a978cc604fb3aba60e /tools/run_tests.sh
parent99d286370d38c8e0426c20e326f5cee914785417 (diff)
gvisor/bazel: use python2 to build runsc-debian
$ bazel build runsc:runsc-debian File ".../bazel_tools/tools/build_defs/pkg/make_deb.py", line 311, in GetFlagValue: flagvalue = flagvalue.decode('utf-8') AttributeError: 'str' object has no attribute 'decode' make_deb.py is incompatible with Python3. https://github.com/bazelbuild/bazel/issues/8443 PiperOrigin-RevId: 253691923
Diffstat (limited to 'tools/run_tests.sh')
-rwxr-xr-xtools/run_tests.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/run_tests.sh b/tools/run_tests.sh
index 7a1f889dd..00b6b92b5 100755
--- a/tools/run_tests.sh
+++ b/tools/run_tests.sh
@@ -92,6 +92,14 @@ build_everything() {
"${BUILD_PACKAGES[@]}"
}
+build_runsc_debian() {
+ cd ${WORKSPACE_DIR}
+
+ # TODO(b/135475885): pkg_deb is incompatible with Python3.
+ # https://github.com/bazelbuild/bazel/issues/8443
+ bazel build --host_force_python=py2 runsc:runsc-debian
+}
+
# Run simple tests runs the tests that require no special setup or
# configuration.
run_simple_tests() {
@@ -277,6 +285,8 @@ main() {
run_syscall_tests
run_runsc_do_tests
+ build_runsc_debian
+
# Build other flavors too.
build_everything dbg