sanity: Use random filename for maximum path length test
authorMike Crowe <mac@mcrowe.com>
Mon, 25 Nov 2013 15:20:14 +0000 (15:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Nov 2013 16:14:48 +0000 (16:14 +0000)
commit27222a7680b176b08fa3a5a4707034bb5815ec9b
tree6abb81918edd448f0b138c708bffc4a24c5ad529
parent8eeef4f4f970a941ecca7531f6ac8eb4ca044ef6
sanity: Use random filename for maximum path length test

check_create_long_filename used a fixed filename for its test files. This
meant that os.remove(testfile) could fail with ENOENT if two instances were
running at the same time against the same sstate directory. Using a
randomly generated filename stops this from happening.

(Although it might seem unlikely, this race did appear to occur multiple
times with Jenkins - presumably because the matrix jobs were all kicked off
at the same time.)

(From OE-Core rev: bc28e3f26e7f85af82f403924c0ae29e1ad34a87)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass