pkg tests and improvements

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pkg tests and improvements

Juan Pablo Carbajal-2
Hi,

From Mike's activity in the tracker I got to questions:

1. What folders are always writable by the user running the tests?
/tmp? I have no clue of the folder structure of the buildbots

2. Mike, are you currently working on pkg.m?

Cheers

Reply | Threaded
Open this post in threaded view
|

Re: pkg tests and improvements

Mike Miller-4
On Thu, Apr 05, 2018 at 00:15:36 +0200, Juan Pablo Carbajal wrote:
> 1. What folders are always writable by the user running the tests?
> /tmp? I have no clue of the folder structure of the buildbots

The only path that can be guaranteed to be writable is the path returned
by tempdir(), which may be /tmp or may be set by $TMPDIR. Any files that
you need to write should be under tempdir(), and preferably created by
using the tempname() function. Plenty of examples of %!tests that create
temporary files and directories and clean them up in an unwind_protect.

> 2. Mike, are you currently working on pkg.m?

I am only looking at pkg.m with respect to bug #53561. There are plenty
of things I would like to fix in pkg.m, but I generally stay out of it.

--
mike

signature.asc (849 bytes) Download Attachment