Different tests failing on local dev box and GitLab runner
Figured out why my build system fails tests when trying to build tiny-cloud APKs...
===> tests/init-early.test:create_default_user
Result: failed: atf-check failed; see the output of the test for details
Start time: 2023-05-21T21:30:53.257302Z
End time: 2023-05-21T21:30:53.274744Z
Duration: 0.017s
Metadata:
allowed_architectures is empty
allowed_platforms is empty
description is empty
has_cleanup = false
is_exclusive = false
required_configs is empty
required_disk_space = 0
required_files is empty
required_memory = 0
required_programs is empty
required_user is empty
timeout = 300
Standard output:
Executing command [ sh -c . /home/tomalok/git/alpinelinux/aports/main/tiny-cloud/src/tiny-cloud-3.0.0_rc6/tests/../lib/tin
y-cloud/init; init__create_default_user ]
Standard error:
Fail: stderr not empty
--- /dev/null
+++ /tmp/kyua.IfKlNb/42/work/check.lJHHaG/stderr
@@ -0,0 +1 @@
+: already exists
Files left in work directory after failure: var
===> Failed tests
tests/init-early.test:create_default_user -> failed: atf-check failed; see the output of the test for details [0.017s]
If the default user already exists, already exists
is on stderr. I'm not entirely how to get atf-check
to pass if stderr is empty OR it contains already exists
.
Edited by Jake Buchholz Göktürk