aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2017-12-14 15:58:26 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2017-12-15 09:48:21 -0800
commitacd56b736102c0ba40a9b782f8252d750205f88e (patch)
treec5498cc499b25c39460ba1f81c814e3fa297b365 /tools
parent5d37e61d069a3d33fba15db35151d013a298537f (diff)
Fix failing ruby distrib tests on ruby 2.0 images
Diffstat (limited to 'tools')
-rw-r--r--tools/run_tests/artifacts/distribtest_targets.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/run_tests/artifacts/distribtest_targets.py b/tools/run_tests/artifacts/distribtest_targets.py
index 83f656b433..94a2d53770 100644
--- a/tools/run_tests/artifacts/distribtest_targets.py
+++ b/tools/run_tests/artifacts/distribtest_targets.py
@@ -185,6 +185,10 @@ class RubyDistribTest(object):
return []
def build_jobspec(self):
+ arch_to_gem_arch = {
+ 'x64': 'x86_64',
+ 'x86': 'x86',
+ }
if not self.platform == 'linux':
raise Exception("Not supported yet.")
@@ -192,7 +196,8 @@ class RubyDistribTest(object):
self.name,
'tools/dockerfile/distribtest/ruby_%s_%s' % (self.docker_suffix,
self.arch),
- 'test/distrib/ruby/run_distrib_test.sh',
+ 'test/distrib/ruby/run_distrib_test.sh %s %s' %
+ (arch_to_gem_arch[self.arch], self.platform),
copy_rel_path='test/distrib')
def __str__(self):