diff --git a/lib/fastlane/plugin/dynatrace/actions/dynatrace_action.rb b/lib/fastlane/plugin/dynatrace/actions/dynatrace_action.rb index d39f19e..b82fce0 100644 --- a/lib/fastlane/plugin/dynatrace/actions/dynatrace_action.rb +++ b/lib/fastlane/plugin/dynatrace/actions/dynatrace_action.rb @@ -101,7 +101,7 @@ def self.run(params) # Create the full shell command to trigger the DTXDssClient shell_command = command.join(' ') - UI.message "#{print_command}" if params[:debugMode] == true + UI.message "#{shell_command}" if params[:debugMode] == true Fastlane::Actions.sh("#{shell_command}", log: params[:debugMode] == true, error_callback: ->(result) { # ShAction doesn't return any reference to the return value -> parse it from the output diff --git a/spec/dynatrace_action_spec.rb b/spec/dynatrace_action_spec.rb index b42eb24..3a683f4 100644 --- a/spec/dynatrace_action_spec.rb +++ b/spec/dynatrace_action_spec.rb @@ -27,7 +27,8 @@ def mock_dict ( os, symbolsfile = Dir.pwd + "/spec/testdata/android-mapping-test.txt", customLLDBFrameworkPath: nil, - autoSymlinkLLDB: nil + autoSymlinkLLDB: nil, + debugMode: nil ) dict = { :action => "-upload", @@ -54,6 +55,10 @@ def mock_dict ( dict[:autoSymlinkLLDB] = autoSymlinkLLDB end + unless debugMode.nil? + dict[:debugMode] = debugMode + end + return dict end @@ -195,6 +200,13 @@ def mock_dict ( expect(lldb_symlink_exists?(@destination_path)).to eql(false) end + + it "test with debug mode" do + flhash = FastlaneCore::Configuration.create(mock_config, mock_dict("ios", debugMode: true)) + Fastlane::Actions::DynatraceProcessSymbolsAction.run(flhash) + + expect(lldb_symlink_exists?(@destination_path)).to eql(false) + end end context "when valid customLLDBFrameWorkPath provided" do