tests: make as() function as documented
authorLance Richardson <lrichard@redhat.com>
Wed, 2 Mar 2016 21:40:46 +0000 (16:40 -0500)
committerBen Pfaff <blp@ovn.org>
Fri, 18 Mar 2016 23:55:57 +0000 (16:55 -0700)
commit5074bfc4f42d7ffa3f09e0ceeef3f2f10dd97384
treefd699c14cc0a34ef332573185a36db3b37d4e027
parentf9b11f2a09b45c87995d69588fc0a9f03661725e
tests: make as() function as documented

As documented, the as() function should only create a subshell
to execute the provided command when a command is present. Correct
the implementation to check for the presence of the command parameter
instead of the sandbox name (which is always present in current
usage).

Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
tests/ofproto-macros.at