Skip to content

Commit 471cc03

Browse files
committed
test: replace the tests exit code in case of error from 255 to 1
1 parent 0a02420 commit 471cc03

12 files changed

+12
-12
lines changed

t/000-init.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ test:test('access to queue after box.cfg{}', function(test)
4343
end)
4444

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

t/001-tube-init.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ test:test('test queue mock addition', function(test)
2323
end)
2424

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

t/010-fifo.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,5 +323,5 @@ test:test('Get tasks by state test', function(test)
323323
end)
324324

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

t/020-fifottl.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,5 +293,5 @@ test:test('Get tasks by state test', function(test)
293293
end)
294294

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

t/030-utube.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,5 +187,5 @@ test:test('Get tasks by state test', function(test)
187187
end)
188188

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

t/040-utubettl.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,5 +288,5 @@ test:test('Get tasks by state test', function(test)
288288
end)
289289

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

t/050-ttl.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ test:test('many messages, one queue utttl', function (test)
5858
end)
5959

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

t/060-async.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ end)
5454

5555

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

t/070-compat.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ test:test("check compatibility names", function(test)
4242
test:is(str_name("1.7.1-168"), "str", "check old name (str)")
4343
end)
4444

45-
os.exit(test:check() == true and 0 or -1)
45+
os.exit(test:check() and 0 or 1)
4646
-- vim: set ft=lua:

t/080-otc-cb.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ test:test('on_task_change callback', function(test)
4545
end)
4646

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

t/090-grant-check.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,5 @@ end)
166166

167167
tnt.finish()
168168

169-
os.exit(test:check() == true and 0 or -1)
169+
os.exit(test:check() and 0 or 1)
170170
-- vim: set ft=lua :

t/100-limfifottl.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ else
6868
end
6969

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

0 commit comments

Comments
 (0)