Fixed makefiles tests.

Introduced by 4f73de1157
This commit is contained in:
Salvador E. Tropea 2021-03-12 15:05:24 -03:00
parent a5b3b0569f
commit eab8550c11
2 changed files with 2 additions and 2 deletions

View File

@ -600,7 +600,7 @@ def check_test_v5_sch_deps(ctx, deps, extra=[], in_output=False):
def check_makefile(ctx, mkfile, prj, dbg, txt):
ctx.expect_out_file('Makefile')
res = ctx.search_in_file('Makefile', ['DEBUG=(.*)', txt])
res = ctx.search_in_file('Makefile', [r'DEBUG\?=(.*)', txt])
assert res[0][0] == dbg, res
targets = ctx.read_mk_targets(mkfile)
all = targets['all']

View File

@ -326,5 +326,5 @@ def test_makefile_kibot_sys(test_dir):
GS.out_dir = ctx.get_out_path('')
with context.cover_it(cov):
generate_makefile(ctx.get_out_path('Makefile'), 'pp', [], kibot_sys=True)
ctx.search_in_file('Makefile', ['KIBOT=kibot'])
ctx.search_in_file('Makefile', [r'KIBOT\?=kibot'])
ctx.clean_up()