kunit: use --build_dir=.kunit as default
PATCH RESEND 1/1 kunit: use --build_dir=.kunit as default
To make KUnit easier to use, and to avoid overwriting object and .config files, the default KUnit build directory is set to .kunit
* Related bug: https://bugzilla.kernel.org/show_bug.cgi?id=205221
--- tools/testing/kunit/kunit.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
tools/testing/kunit/kunit.py +6 -7
@@ -116,7 +116,7 @@ def main(argv, linux=None): run_parser.add_argument('--build_dir', help='As in the make command, it specifies the build ' 'directory.', - type=str, default='', metavar='build_dir') + type=str, default='.kunit', metavar='build_dir') run_parser.add_argument('--defconfig', help='Uses a default .kunitconfig.',
@@ -136,12 +136,11 @@ def main(argv, linux=None): if get_kernel_root_path(): os.chdir(get_kernel_root_path()) - if cli_args.build_dir: - if not os.path.exists(cli_args.build_dir): - os.mkdir(cli_args.build_dir) - kunit_kernel.kunitconfig_path = os.path.join( - cli_args.build_dir, - kunit_kernel.kunitconfig_path) + if not os.path.exists(cli_args.build_dir): + os.mkdir(cli_args.build_dir) + kunit_kernel.kunitconfig_path = os.path.join( + cli_args.build_dir, + kunit_kernel.kunitconfig_path) if cli_args.defconfig: create_default_kunitconfig()
Signature · 6 lines
2.25.1 _______________________________________________ Linux-kernel-mentees mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Quoted 7 lines · Vitor Massaru Iha
To make KUnit easier to use, and to avoid overwriting object and .config files, the default KUnit build directory is set to .kunit
* Related bug: https://bugzilla.kernel.org/show_bug.cgi?id=205221
Signed-off-by Vitor Massaru Iha <[email protected]>
shuah
maintainerQuoted 11 lines · Brendan Higgins
Quoted 7 lines · Vitor Massaru Iha
To make KUnit easier to use, and to avoid overwriting object and .config files, the default KUnit build directory is set to .kunit
* Related bug: https://bugzilla.kernel.org/show_bug.cgi?id=205221
Signed-off-by Vitor Massaru Iha <[email protected]>Reviewed-by Brendan Higgins <[email protected]>
Applied the patch to kselftest/kunit on top of
45ba7a893ad89114e773b3dc32f6431354c465d6
kunit: kunit_tool: Separate out config/build/exec/parse
from David's work resolving merge conflicts. Please check if it is sane.
thanks,
-- Shuah
Hi Shuah,
Quoted 16 lines · shuah
Quoted 5 lines · Brendan Higgins
Quoted 3 lines · Vitor Massaru Iha
To make KUnit easier to use, and to avoid overwriting object and .config files, the default KUnit build directory is set to .kunit
Quoted 7 lines
Quoted 4 lines
* Related bug:
https://bugzilla.kernel.org/show_bug.cgi?id=205221Signed-off-by Vitor Massaru Iha <[email protected]>Reviewed-by Brendan Higgins <[email protected]>Applied the patch to kselftest/kunit on top of
Quoted 8 lines
45ba7a893ad89114e773b3dc32f6431354c465d6
kunit:kunit_tool: Separate out config/build/exec/parsefrom David's work resolving merge conflicts. Please check if it is sane.
thanks,
-- Shuah
The kunit branch had some problems related to identation. KUnit's code has mixed identation, and with that, in conflict correction, it ended up breaking python.
In addition I found a bug: related to the creation of the .kunitconfig file inside the default build directory. Should I send the patch again? Or do I make a bugfix patch?
BR,
Vitor
Quoted 30 lines · Vitor Massaru Iha
Hi Shuah,
Quoted 18 lines · shuah
Quoted 7 lines · Brendan Higgins
Quoted 5 lines · Vitor Massaru Iha
To make KUnit easier to use, and to avoid overwriting object and
.config files, the default KUnit build directory is set to .kunitQuoted 7 lines
Quoted 4 lines
* Related bug:
https://bugzilla.kernel.org/show_bug.cgi?id=205221Signed-off-by Vitor Massaru Iha <[email protected]>Reviewed-by Brendan Higgins <[email protected]>Applied the patch to kselftest/kunit on top of
Quoted 8 lines
45ba7a893ad89114e773b3dc32f6431354c465d6
kunit:kunit_tool: Separate out config/build/exec/parsefrom David's work resolving merge conflicts. Please check if it is sane.
thanks,
-- Shuah
Quoted 8 lines
The kunit branch had some problems related to identation. KUnit's code
has mixed identation, and with that, in conflict correction, it ended up breaking python.In addition I found a bug: related to the creation of the .kunitconfig
file inside the default build directory.
This is actually related to the other patch "kunit: use KUnit defconfig by default"
Quoted 6 lines
Should I send the patch again?
Or do I make a bugfix patch?BR,
Vitor
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
Shuah Khan
maintainerQuoted 28 lines · Vitor Massaru Iha
Quoted 27 lines · Vitor Massaru Iha
Hi Shuah,
Quoted 24 lines · shuah
Quoted 7 lines · Brendan Higgins
Quoted 5 lines · Vitor Massaru Iha
To make KUnit easier to use, and to avoid overwriting object and
.config files, the default KUnit build directory is set to .kunitQuoted 7 lines
Quoted 4 lines
* Related bug:
https://bugzilla.kernel.org/show_bug.cgi?id=205221Signed-off-by Vitor Massaru Iha <[email protected]>Reviewed-by Brendan Higgins <[email protected]>Applied the patch to kselftest/kunit on top of
45ba7a893ad89114e773b3dc32f6431354c465d6
kunit:kunit_tool: Separate out config/build/exec/parsefrom David's work resolving merge conflicts. Please check if it is sane.
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
thanks,
-- ShuahThe kunit branch had some problems related to identation. KUnit's code
has mixed identation, and with that, in conflict correction, it ended up breaking python.
Thanks for sanity checking my merge.
Quoted 11 lines
Quoted 3 lines
In addition I found a bug: related to the creation of the .kunitconfig
file inside the default build directory.This is actually related to the other patch "kunit: use KUnit defconfig by default"
Quoted 3 lines
Should I send the patch again?
Or do I make a bugfix patch?
Please send the fix.
thanks,
-- Shuah