dbus-unit-test.py: use /tmp for temporary files
Recently saw this fail starting to pop up via internal CI:
dbus-daemon[7]: Failed to start message bus: Socket name too long
The issue appears to be that the jenkins workspace, and the
corresponding socket file passed to the dbus-daemon, is too long.
As this is all running within its own docker container, just use /tmp/
as a base for the temporary files and corresponding socket file.
Tested:
- Verified failing jenkins CI job now passes
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I5ef5b2f21c9780001b5ec38921ce3b20f1610e2d
diff --git a/scripts/dbus-unit-test.py b/scripts/dbus-unit-test.py
index a931761..51c91b4 100755
--- a/scripts/dbus-unit-test.py
+++ b/scripts/dbus-unit-test.py
@@ -83,7 +83,7 @@
required=True, help="Unit test script and params \
as comma delimited string")
args = parser.parse_args(sys.argv[1:])
- DBUS_DIR = tempfile.mkdtemp()
+ DBUS_DIR = tempfile.mkdtemp(dir='/tmp/')
DBUS_SYS_CONFIG_FILE = args.DBUS_SYS_CONFIG_FILE
UNIT_TEST = args.UNIT_TEST