From 511388ad2cb5f90289e0218d570182fb7ed2c088 Mon Sep 17 00:00:00 2001 From: Zac Brown Date: Thu, 30 Aug 2018 11:40:35 -0700 Subject: [PATCH] Fix issue using colons (:) in file paths on Windows. This syntax (colon) is used for alternative data streams (https://en.wikipedia.org/wiki/NTFS#Alternate_data_streams_.28ADS.29). Signed-off-by: Zac Brown --- execution-frameworks/ruby/go-atomic.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/execution-frameworks/ruby/go-atomic.rb b/execution-frameworks/ruby/go-atomic.rb index 096b106b..87da1fe4 100755 --- a/execution-frameworks/ruby/go-atomic.rb +++ b/execution-frameworks/ruby/go-atomic.rb @@ -256,7 +256,8 @@ begin repo_org_branch: options[:repo], input_args: input_args - output_filename = "atomic-test-executor-execution-#{Time.now.utc.iso8601}.yaml" + formatted_time = Time.now.utc.iso8601.gsub(/:/, '.') + output_filename = "atomic-test-executor-execution-#{formatted_time}.yaml" puts "\n\nEXECUTION COMPLETE" puts " - Writing results to #{output_filename}" File.write(output_filename, YAML.dump(execution_plan))