Improve inspect_output_dirs_test bin_dir comparison (#267)

This should fix some buildkite CI flows, ensuring success of
this test is no longer tied to the current compilation_mode.
It also improves the error message of the offending evaluation.
This commit is contained in:
c-parsons 2020-08-20 13:06:59 -04:00 committed by GitHub
parent dc080e9516
commit 68acaa5d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ def _inspect_output_dirs_test(ctx):
asserts.false( asserts.false(
env, env,
bin_path == ctx.bin_dir.path, bin_path == ctx.bin_dir.path,
"bin dir path expected to differ between test and target_under_test.", "test bin dir (%s) expected to differ with target_under_test bin dir (%s)." % (bin_path, ctx.bin_dir.path),
) )
asserts.equals(env, bin_path, target_under_test[_OutputDirInfo].bin_path) asserts.equals(env, bin_path, target_under_test[_OutputDirInfo].bin_path)
return analysistest.end(env) return analysistest.end(env)
@ -217,7 +217,7 @@ inspect_output_dirs_test = analysistest.make(
# The output directories differ between the test and target under test when # The output directories differ between the test and target under test when
# the target under test is under a config transition. # the target under test is under a config transition.
config_settings = { config_settings = {
"//command_line_option:compilation_mode": "fastbuild", "//command_line_option:minimum_os_version": "1234.5678",
}, },
) )