File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ object AddCommand extends Command[CommonOptions]:
234234 }
235235
236236 logger.info(s " Skipped: $skipped" )
237- if added == 0 then sys.exit(0 )
237+ if added == 0 then sys.exit(0 ) else sys.exit( 1 )
238238 }
239239
240240/** Add command entry point.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ command: add
33args :
44 - " source/*.py"
55ignore : [ ]
6- expectExit : 0
6+ expectExit : 1
77expectedOutput :
88 - " Added: source/one.py"
99 - " Skipped: 0"
Original file line number Diff line number Diff line change 44 - " source/*.py"
55ignore :
66 - " **/skip.py"
7- expectExit : 0
7+ expectExit : 1
88expectedOutput :
99 - " Added: source/one.py"
1010 - " Skipped: 0"
Original file line number Diff line number Diff line change 55ignore :
66 - " source/vendor/**"
77 - " source/**/skip.py"
8- expectExit : 0
8+ expectExit : 1
99expectedOutput :
1010 - " Added: source/app/main.py"
1111 - " Added: source/app/utils/helper.py"
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: add-directory-arg
22command : add
33args :
44 - " source"
5- ignore : []
6- expectExit : 0
5+ ignore : [ ]
6+ expectExit : 1
77expectedOutput :
88 - " Added: source/app.py"
99 - " Added: source/utils/helper.py"
Original file line number Diff line number Diff line change 44 - " source/**/*.py"
55ignore :
66 - " source/skip.py"
7- expectExit : 0
7+ expectExit : 1
88expectedOutput :
99 - " Added: source/src/skip.py"
1010 - " Added: source/src/main.py"
Original file line number Diff line number Diff line change 66 - " source/vendor/**"
77 - " source/build/**"
88 - " **/test_*.py"
9- expectExit : 0
9+ expectExit : 1
1010expectedOutput :
1111 - " Added: source/app/main.py"
1212 - " Skipped: 0"
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: add-nested
22command : add
33args :
44 - " source/**/*.py"
5- ignore : []
6- expectExit : 0
5+ ignore : [ ]
6+ expectExit : 1
77expectedOutput :
88 - " Added: source/a/b/c/deep.py"
99 - " Added: source/x/y/file.py"
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: add-range
22command : add
33args :
44 - " source/*.py"
5- ignore : []
6- expectExit : 0
5+ ignore : [ ]
6+ expectExit : 1
77expectedOutput :
88 - " Added: source/range.py"
99 - " Skipped: 0"
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: add-unchanged
22command : add
33args :
44 - " source"
5- ignore : []
6- expectExit : 1
5+ ignore : [ ]
6+ expectExit : 0
77expectedOutput :
88 - " Unchanged: source/already.py"
99 - " Unchanged: source/correct.py"
You can’t perform that action at this time.
0 commit comments