Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t/23-Monitoring-Livestatus-BigData.t fails on BSD systems (incompatible du) #2

Closed
eserte opened this issue Sep 27, 2016 · 2 comments
Closed

Comments

@eserte
Copy link

eserte commented Sep 27, 2016

On my FreeBSD 10.1 smoker I see the following:

#   Failed test 'testfile: /tmp/testresult.json.data written'
#   at t/23-Monitoring-Livestatus-BigData.t line 27.
du: illegal option -- b
usage: du [-Aclnx] [-H | -L | -P] [-g | -h | -k | -m] [-a | -s | -d depth] [-B blocksize] [-I mask] [-t threshold] [file ...]

#   Failed test 'testfile has  bytes'
#   at t/23-Monitoring-Livestatus-BigData.t line 33.
failed to connect - Connection refused at t/23-Monitoring-Livestatus-BigData.t line 52.
# Looks like your test exited with 61 just after 7.
t/23-Monitoring-Livestatus-BigData.t ..............
Dubious, test returned 61 (wstat 15616, 0x3d00)
Failed 9/14 subtests

The du -b option found on Linux systems is not available here, and there does not seem to exist a replacement option.

@sni sni closed this as completed in 988a9eb Sep 27, 2016
@sni
Copy link
Owner

sni commented Sep 27, 2016

We can just use "-s" to get the size. However later in that test netcat will be used, no idea how portable that is :-)

@eserte
Copy link
Author

eserte commented Sep 27, 2016

I think netcat differs even between Linux distributions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants