From 7dcad1a035e7362aa5006fb863ce7ad4c4166da5 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 13 Sep 2023 08:18:07 +0200 Subject: [PATCH] Follow-up to 0cbbe96: remove input_filename from unit tests --- t/gcode.t | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/t/gcode.t b/t/gcode.t index 902c40b834b..7bf6b06535e 100644 --- a/t/gcode.t +++ b/t/gcode.t @@ -1,4 +1,4 @@ -use Test::More tests => 23; +use Test::More tests => 22; use strict; use warnings; @@ -185,13 +185,14 @@ use Slic3r::Test; } } -{ - my $config = Slic3r::Config::new_from_defaults; - $config->set('start_gcode', 'START:[input_filename]'); - my $print = Slic3r::Test::init_print('20mm_cube', config => $config); - my $gcode = Slic3r::Test::gcode($print); - like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code'; -} +#{ +# [input_filename] placeholder was removed in 0cbbe96. +# my $config = Slic3r::Config::new_from_defaults; +# $config->set('start_gcode', 'START:[input_filename]'); +# my $print = Slic3r::Test::init_print('20mm_cube', config => $config); +# my $gcode = Slic3r::Test::gcode($print); +# like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code'; +#} # The current Spiral Vase slicing code removes the holes and all but the largest contours from each slice, # therefore the following test is no more valid.