tarantool / tarantool-qa

QA related issues of Tarantool
3 stars 0 forks source link

app-tap/gh-5040-inter-mode-isatty-via-errinj.test.lua is flaky #122

Closed Totktonada closed 3 years ago

Totktonada commented 3 years ago

Tarantool version: 2.9.0-30-g7bee61531.

How to reproduce (use debug tarantool build):

./test/test-run.py $(yes app-tap/gh-5040-inter-mode-isatty-via-errinj.test.lua app-tap/gh-4983-tnt-e-assert-false-hangs.test.lua | head -n 100)

Got:

[015] TAP version 13
[015] 1..6
[015]     # ERRINJ_STDIN_ISATTY=1 /home/alex/projects/tarantool-meta/r/t-6/src/tarantool    >/home/alex/projects/tarantool-meta/r/t-6/test/var/015_app-tap/out.txt & echo $!
[015]     1..1
[015]     not ok - interactive mode detected
[015]       ---
[015]       filename: /home/alex/projects/tarantool-meta/r/t-6/test/app-tap/gh-5040-inter-mode-isatty-via-errinj.test.lua
[015]       trace:
<..stripped the trace..>
[015]       line: 0
[015]       expected: tarantool>
[015]       got: 'LuajitError: (command line):1: assertion failed!
[015]         fatal error, exiting the event loop
[015]         '
[015]       ...
[015]     # ERRINJ_STDIN_ISATTY=1 /home/alex/projects/tarantool-meta/r/t-6/src/tarantool    >/home/alex/projects/tarantool-meta/r/t-6/test/var/015_app-tap/out.txt & echo $!: end

I guess the problem is that app-tap/gh-4983-tnt-e-assert-false-hangs.test.lua uses the same named file out.txt and does not clean it at the end of the test.