Skip to content

Commit fb87e1d

Browse files
committed
fix CI assertions
1 parent abca4d2 commit fb87e1d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common.jsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ local add_jdk_version(name) =
3232
local version = find_first_integer(jdk.version);
3333
// santity check that the parsed version is also included in the name
3434
assert std.length(std.findSubstr(std.toString(version), name)) == 1 : "Cannot find version %d in name %s" % [version, name];
35-
{ jdk_version:: version}
35+
{ jdk_version:: version }
3636
;
3737

3838
{

vm/ci_common/common.jsonnet

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ local common_json = composable(import '../../common.json');
66
local devkits = common_json.devkits;
77

88
{
9-
verify_name(build): build + {
9+
verify_name(build): {
1010
expected_prefix:: std.join('-', [target for target in build.targets if target != "mach5"]) + '-vm',
1111
expected_suffix:: build.os + '-' + build.arch,
1212
assert std.startsWith(build.name, self.expected_prefix) : "'%s' is defined in '%s' with '%s' targets but does not start with '%s'" % [build.name, build.defined_in, build.targets, self.expected_prefix],
1313
assert std.endsWith(build.name, self.expected_suffix) : "'%s' is defined in '%s' with os/arch '%s/%s' but does not end with '%s'" % [build.name, build.defined_in, build.os, build.arch, self.expected_suffix],
14-
},
14+
} + build,
1515

1616
vm_env_mixin(shortverison): {
1717
local jdk = self.downloads.JAVA_HOME,

0 commit comments

Comments
 (0)