File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def add_common_opts(parser):
169
169
parser .add_argument ('--build_dir' ,
170
170
help = 'As in the make command, it specifies the build '
171
171
'directory.' ,
172
- type = str , default = '' , metavar = 'build_dir' )
172
+ type = str , default = '.kunit ' , metavar = 'build_dir' )
173
173
parser .add_argument ('--make_options' ,
174
174
help = 'X=Y make option, can be repeated.' ,
175
175
action = 'append' )
@@ -245,12 +245,11 @@ def main(argv, linux=None):
245
245
cli_args = parser .parse_args (argv )
246
246
247
247
if cli_args .subcommand == 'run' :
248
- if cli_args .build_dir :
249
- if not os .path .exists (cli_args .build_dir ):
250
- os .mkdir (cli_args .build_dir )
251
- kunit_kernel .kunitconfig_path = os .path .join (
252
- cli_args .build_dir ,
253
- kunit_kernel .kunitconfig_path )
248
+ if not os .path .exists (cli_args .build_dir ):
249
+ os .mkdir (cli_args .build_dir )
250
+ kunit_kernel .kunitconfig_path = os .path .join (
251
+ cli_args .build_dir ,
252
+ kunit_kernel .kunitconfig_path )
254
253
255
254
if not linux :
256
255
linux = kunit_kernel .LinuxSourceTree ()
You can’t perform that action at this time.
0 commit comments