Skip to content
Snippets Groups Projects
Commit c2f649f6 authored by Frédéric Dalleau's avatar Frédéric Dalleau :sun_with_face:
Browse files

bluez/ubt: Use temporary filename in dun and pan tests


In dun and pan tests, a file is retrieve from http to verify connection,
it is saved at the location defined in variable path. But path do not
contain a file path. Instead it's a dbus object path in /net/connman
namespace. As such, it is not suitable for using as a filename and any
tentative to open this file will end with an "File Not Found" error.

Instead, create a temporary filename that will be automatically deleted.

Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Signed-off-by: default avatarFrédéric Dalleau <frederic.dalleau@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D4447
parent 015bc5db
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment