diff options
author | 2015-08-12 14:35:37 +0000 | |
---|---|---|
committer | 2015-08-12 15:23:51 +0000 | |
commit | 98a8e3b3aab90756bba2b3c37379513977312648 (patch) | |
tree | fe3acecc938e3143a9e6bf20a815e48f6235fbeb /tools/build_defs/docker/testenv.py | |
parent | 1782a8f812a25f40e8134acd6be686235117006d (diff) |
docker_build: workaround the lack of LZMA in python 2.7
Some debs file actually does use the LZMA compression and reading
that format requires python 3. Backports of LZMA to python 2 are
using native deps which might be hard for the user to setup and
our support of python 3 is not really functional (it needs 2to3
to use gflags for instance). Until we fix Bazel's python 3 support,
we shell out to xzcat for supporting LZMA compressed file.
Also added test for the archive library. These tests shows some
wrong handling in the AR format padding, fixed.
--
MOS_MIGRATED_REVID=100474498
Diffstat (limited to 'tools/build_defs/docker/testenv.py')
-rw-r--r-- | tools/build_defs/docker/testenv.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/build_defs/docker/testenv.py b/tools/build_defs/docker/testenv.py new file mode 100644 index 0000000000..4e0039e2b6 --- /dev/null +++ b/tools/build_defs/docker/testenv.py @@ -0,0 +1,22 @@ +# Copyright 2015 Google Inc. All rights reserved. +# +# 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. +"""Path to the test data.""" + +import os +import os.path + +TESTDATA_PATH = os.path.join( + os.getcwd(), + "tools/build_defs/docker/testdata", + ) |