Nailgun tests fail intermittently with message "[: -ne: unary operator expected"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Roman Prykhodchenko |
Bug Description
Steps to reproduce:
1. Run tests as described in 8.1.1.2. Setup for Nailgun Unit Tests (http://
Expected result:
Tests pass
Actual result
Tests cli, webui fail *intermittently* with error message:
./run_tests.sh: line 307: [: -ne: unary operator expected (webui)
./run_tests.sh: line 359: [: -ne: unary operator expected (cli)
Root cause:
In run_tests.sh:
function run_server {
....
# wait for server availability
which nc > /dev/null
if [ $? -eq 0 ]; then
for i in {1..50}; do # <<<< BUG. It does not wait until server starts, but returns after limited number of attempts to access the server
local http_code=`curl -s -w %{http_code} -o /dev/null -I http://
if [ http_code = 200 ]; then break; fi
sleep 0.1
done
else
sleep 5
fi
Changed in fuel: | |
assignee: | nobody → Fuel QA Team (fuel-qa) |
importance: | Undecided → High |
summary: |
- Nailgun tests fail intermittently + Nailgun tests fail intermittently with message "[: -ne: unary operator + expected" |
Changed in fuel: | |
status: | Incomplete → Confirmed |
Changed in fuel: | |
status: | Confirmed → In Progress |
Nailgun start was just too slow.