From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 4 Oct 2019 16:07:02 -0400 Subject: [U-Boot] [PATCH 1/3] buildman: Perform tests in /tmp In-Reply-To: <57edce01-e4ad-69ab-21f1-11037513579d@wwwdotorg.org> References: <20191004161254.22362-1-trini@konsulko.com> <20191004172654.GC15735@bill-the-cat> <57edce01-e4ad-69ab-21f1-11037513579d@wwwdotorg.org> Message-ID: <20191004200702.GF15735@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Oct 04, 2019 at 12:40:02PM -0600, Stephen Warren wrote: > On 10/4/19 11:26 AM, Tom Rini wrote: > > On Fri, Oct 04, 2019 at 10:32:42AM -0600, Stephen Warren wrote: > > > On 10/4/19 10:12 AM, Tom Rini wrote: > > > > We may not always be able to write to the default output directory but > > > > we will always have a usable /tmp. > > > > > > Is that a valid assumption? Surely $TMPDIR should be used if set in the > > > environment, falling back to a hard-coded /tmp if that isn't set? > > > > $TMPDIR is most portable but as far as Linux goes, there needs to be > > /tmp, yes? > > I don't think there absolutely has to be, no. Calling tempfile.mkdtemp() > will "just work" and do the right thing in all cases. OK, that wasn't too bad, waiting for any other feedback before v2'ing, thanks. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: