-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Keep records of error code and its corresponding output messages
- Loading branch information
1 parent
47126b2
commit db82798
Showing
5 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...ests/project-folder/sources/meta-error/recipes-error/error/compilation-python-function.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# ERROR: [file-path]: Error in compiling python function in [file-path], line [line-number]: | ||
# [multiline-error-info] | ||
# SyntaxError: [error-reason] ([file-name], line [line-number]) | ||
python() { | ||
garbage(code | ||
} |
1 change: 0 additions & 1 deletion
1
integration-tests/project-folder/sources/meta-error/recipes-error/error/error.bb
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...tests/project-folder/sources/meta-error/recipes-error/error/execution-python-functioni.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# ERROR: [file-path]: Error executing a python function in <code>: | ||
# [multiline-error-info] | ||
# Exception: TypeError: [error-reason] | ||
python() { | ||
'2' + 2 | ||
} |
7 changes: 7 additions & 0 deletions
7
integration-tests/project-folder/sources/meta-error/recipes-error/error/unable-to-parse.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# WARNING: [file-path]: Error during finalise of [file-path] | ||
# ERROR: Unable to parse [file-path] | ||
# [multiline-error-info] | ||
# SyntaxError: [error-reason] | ||
python do_compile() { | ||
garbage(code | ||
} |
6 changes: 6 additions & 0 deletions
6
integration-tests/project-folder/sources/meta-error/recipes-error/error/unparsed-line.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# NOTE: | ||
# Some error lines start with 'Parsing recipes...' but sometimes these words appear on a different line than the ones with 'ERROR:' | ||
# Hence do not use '^Parsing recipes...' as part of the regex | ||
|
||
# ERROR: ParseError at [file-path]:[line-number]: unparsed line: 'undefinedvariable' | ||
undefinedvariable |