Bug 182764

Summary: [GTK] error: XDG_RUNTIME_DIR not set in the test environment.
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: aperez, bugs-noreply, clopez, mcatanzaro
Priority: P2    
Version: Other   
Hardware: PC   
OS: Linux   

Description Michael Catanzaro 2018-02-13 19:42:48 PST
We have dozens of tests printing the following stderr output:

error: XDG_RUNTIME_DIR not set in the environment.

I'm kinda surprised that anything works without XDG_RUNTIME_DIR set. Should be set to the user-private directory under /run, commonly /run/user/1000.
Comment 1 Michael Catanzaro 2018-02-27 14:43:31 PST
Hey Carlos Lopez, can you check what is wrong with the bots? This is not an environment variable that our test scripts should have to set up for themselves.
Comment 2 Michael Catanzaro 2018-06-03 10:32:42 PDT
Adrian, is this something you could help with? We currently have 263 tests with stderr output, and I guess this is responsible for quite a few of them.
Comment 3 Carlos Alberto Lopez Perez 2018-06-18 05:51:33 PDT
(In reply to Michael Catanzaro from comment #1)
> Hey Carlos Lopez, can you check what is wrong with the bots? This is not an
> environment variable that our test scripts should have to set up for
> themselves.

In our case it is.

That environment variable may be set when a user session is created, but in case of the bots there is no user session as such... its just a daemontool service executing the job as the buildbot user.

This was already set on the wayland and perf bots (those run under a real X11/wayland session), but not on the others that run over xvfb. I will be ensuring this environment variable is properly set when starting the service on all.