Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
truenas
Commits
81fb0dd7
Commit
81fb0dd7
authored
9 years ago
by
William Grzybowski
Browse files
Options
Download
Email Patches
Plain Diff
Use set -x and proper exit code
parent
775c63dc
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.travis/pep8.sh
+5
-2
.travis/pep8.sh
with
5 additions
and
2 deletions
+5
-2
.travis/pep8.sh
View file @
81fb0dd7
#!/bin/sh
set
-x
# Run pep8 on all .py files in all subfolders
# We must ignore E402 module level import not at top of file
# because of use case sys.path.append('..'); import <module>
...
...
@@ -19,7 +21,8 @@ num_errors_after=`cat $tmpafter | wc -l`
echo
$num_errors_after
if
[
$num_errors_after
-gt
$num_errors_before
]
;
then
echo
"New PEP8 errors were introduced:
$(
diff
-u
$tmpbefore
$tmpafter
)
"
return
1
echo
"New PEP8 errors were introduced:"
diff
-u
$tmpbefore
$tmpafter
exit
1
fi
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help