mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
`tty normal` test passes on CI but fails on the builders due to no tty, and no tty stream is returned. ``` ./tests/test-tty.lua:19: bad argument #1 to 'is_readable' (Expected uv_stream userdata) stack traceback: [C]: in function 'is_readable' ./tests/test-tty.lua:19: in function 'fn' ./lib/tap.lua:59: in function <./lib/tap.lua:48> [C]: in function 'xpcall' ./lib/tap.lua:48: in function 'run' ./lib/tap.lua:146: in function 'tap' tests/run.lua:23: in main chunk [C]: at 0xaab99c555420 not ok 143 tty - tty normal ```
15 lines
462 B
Diff
15 lines
462 B
Diff
diff -ruN a/tests/test-tty.lua b/tests/test-tty.lua
|
|
--- a/tests/test-tty.lua 2025-05-17 03:46:28.000000000 +0000
|
|
+++ b/tests/test-tty.lua 2025-05-17 20:36:03.053353909 +0000
|
|
@@ -13,6 +13,11 @@
|
|
return require('lib/tap')(function (test)
|
|
|
|
test("tty normal", function (print, p, expect, uv)
|
|
+ if true then
|
|
+ print("Skip, no tty on the builders")
|
|
+ return
|
|
+ end
|
|
+
|
|
local stdin = uv.new_tty(0, true)
|
|
local stdout = uv.new_tty(1, false)
|
|
|