From 9c574efd14978b73590950aa8288ba7f4a8aba4a Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 9 Jan 2024 08:54:31 -0300 Subject: [PATCH] [Tests][Added] --defs-from-env --- tests/test_plot/test_misc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index 87959ed6..80ebec9b 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -1548,11 +1548,13 @@ def test_diff_git_5(test_dir): @pytest.mark.slow @pytest.mark.eeschema def test_diff_file_sch_1(test_dir): - """ Difference between the current Schematic and a reference file """ + """ Difference between the current Schematic and a reference file + Also test definitions (from CLI and env) """ prj = 'light_control_diff' yaml = 'diff_file_sch' ctx = context.TestContext(test_dir, prj, yaml) - ctx.run(extra=['-E', 'KiVer='+str(context.kicad_major), '-E', 'SCHExt='+context.KICAD_SCH_EXT]) + os.environ['SCHExt'] = context.KICAD_SCH_EXT + ctx.run(extra=['-E', 'KiVer='+str(context.kicad_major), '--defs-from-env']) ctx.expect_out_file(prj+'-diff_sch_FILE-Current.pdf') if is_debian: ctx.compare_pdf(prj+'-diff_sch.pdf')