Test suite fails when run from within a directory with spaces in its name

Bug #929030 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Low
Clint Byrum

Bug Description

When the test suite is run under 'strace -f -e trace=process ./test' inside a directory with spaces in it, it fails because of improper argument splitting:

[pid 440] execve("/var/lib/jenkins/jobs/juju", ["/var/lib/jenkins/jobs/juju", "tests/workspace/bin/relation-get", "--format=json", "-", "mysql/0"], [/* 9 vars */]) = -1 ENOENT (No such file or directory)

Related branches

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This was *REALLY* hard to nail down.. but it turns out the test suite creates shell scripts without escaping paths, leading to this issue.

Changed in juju:
status: In Progress → Fix Released
milestone: none → florence
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.