Signed-off-by: Hu XueJiao 1034502035@qq.com --- sbin/submit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index bc90e2e0..6f603abe 100755 --- a/sbin/submit +++ b/sbin/submit @@ -9,6 +9,7 @@ require "#{LKP_SRC}/lib/distro_info" require "#{LKP_SRC}/lib/scheduler_client" require 'optparse' require 'yaml' +require 'fileutils'
opt_set_key_value = {} opt_cmdline_defaults = {} @@ -35,7 +36,7 @@ options = OptionParser.new do |opts| exit 1 end opt_output_dir = dir - Dir.mkdir(dir) unless File.directory? dir + FileUtils.mkdir_p(dir) unless File.directory? dir end
opts.on('-a', '--auto-define-files', 'auto add define_files') do
On Wed, Nov 18, 2020 at 05:58:46PM +0800, Hu Xuejiao wrote:
Pls add changelog.
Thanks, Yale
Signed-off-by: Hu XueJiao 1034502035@qq.com
sbin/submit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index bc90e2e0..6f603abe 100755 --- a/sbin/submit +++ b/sbin/submit @@ -9,6 +9,7 @@ require "#{LKP_SRC}/lib/distro_info" require "#{LKP_SRC}/lib/scheduler_client" require 'optparse' require 'yaml' +require 'fileutils'
opt_set_key_value = {} opt_cmdline_defaults = {} @@ -35,7 +36,7 @@ options = OptionParser.new do |opts| exit 1 end opt_output_dir = dir
- Dir.mkdir(dir) unless File.directory? dir
FileUtils.mkdir_p(dir) unless File.directory? dir end
opts.on('-a', '--auto-define-files', 'auto add define_files') do
-- 2.23.0
On Wed, Nov 18, 2020 at 05:58:46PM +0800, Hu Xuejiao wrote:
Signed-off-by: Hu XueJiao 1034502035@qq.com
sbin/submit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index bc90e2e0..6f603abe 100755 --- a/sbin/submit +++ b/sbin/submit @@ -9,6 +9,7 @@ require "#{LKP_SRC}/lib/distro_info" require "#{LKP_SRC}/lib/scheduler_client" require 'optparse' require 'yaml' +require 'fileutils'
opt_set_key_value = {} opt_cmdline_defaults = {} @@ -35,7 +36,7 @@ options = OptionParser.new do |opts| exit 1 end opt_output_dir = dir
- Dir.mkdir(dir) unless File.directory? dir
- FileUtils.mkdir_p(dir) unless File.directory? dir
why to need so change? Thanks, Liushaofei
end
opts.on('-a', '--auto-define-files', 'auto add define_files') do
2.23.0
On Wed, Nov 18, 2020 at 05:58:46PM +0800, Hu Xuejiao wrote:
Signed-off-by: Hu XueJiao 1034502035@qq.com
sbin/submit | 3 ++-
title can add area like:
/sbin/submit: create a multi-level directory
Thanks, Kaiyi
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index bc90e2e0..6f603abe 100755 --- a/sbin/submit +++ b/sbin/submit @@ -9,6 +9,7 @@ require "#{LKP_SRC}/lib/distro_info" require "#{LKP_SRC}/lib/scheduler_client" require 'optparse' require 'yaml' +require 'fileutils'
opt_set_key_value = {} opt_cmdline_defaults = {} @@ -35,7 +36,7 @@ options = OptionParser.new do |opts| exit 1 end opt_output_dir = dir
- Dir.mkdir(dir) unless File.directory? dir
FileUtils.mkdir_p(dir) unless File.directory? dir end
opts.on('-a', '--auto-define-files', 'auto add define_files') do
-- 2.23.0
Title can be: sbin/submit: create a multi-level directory
Thanks, Zhangyu