Skip to content

Commit

Permalink
Replace exit code in case of error from 255 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonidVas committed Feb 28, 2020
1 parent 0a02420 commit 9e5cdae
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion t/000-init.t
Expand Up @@ -43,5 +43,5 @@ test:test('access to queue after box.cfg{}', function(test)
end)

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/001-tube-init.t
Expand Up @@ -23,5 +23,5 @@ test:test('test queue mock addition', function(test)
end)

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/010-fifo.t
Expand Up @@ -323,5 +323,5 @@ test:test('Get tasks by state test', function(test)
end)

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/020-fifottl.t
Expand Up @@ -293,5 +293,5 @@ test:test('Get tasks by state test', function(test)
end)

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/030-utube.t
Expand Up @@ -187,5 +187,5 @@ test:test('Get tasks by state test', function(test)
end)

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/040-utubettl.t
Expand Up @@ -288,5 +288,5 @@ test:test('Get tasks by state test', function(test)
end)

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/050-ttl.t
Expand Up @@ -58,5 +58,5 @@ test:test('many messages, one queue utttl', function (test)
end)

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/060-async.t
Expand Up @@ -54,5 +54,5 @@ end)


tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua:
2 changes: 1 addition & 1 deletion t/070-compat.t
Expand Up @@ -42,5 +42,5 @@ test:test("check compatibility names", function(test)
test:is(str_name("1.7.1-168"), "str", "check old name (str)")
end)

os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua:
2 changes: 1 addition & 1 deletion t/080-otc-cb.t
Expand Up @@ -45,5 +45,5 @@ test:test('on_task_change callback', function(test)
end)

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/090-grant-check.t
Expand Up @@ -166,5 +166,5 @@ end)

tnt.finish()

os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :
2 changes: 1 addition & 1 deletion t/100-limfifottl.t
Expand Up @@ -68,5 +68,5 @@ else
end

tnt.finish()
os.exit(test:check() == true and 0 or -1)
os.exit(test:check() and 0 or 1)
-- vim: set ft=lua :

0 comments on commit 9e5cdae

Please sign in to comment.