allow testing with Firefox snap
The snap version of Firefox cannot write to the /tmp location. Recommended workaround is to set TMPDIR environment variable to location that both geckodriver and firefox can write to e.g. $HOME/tmp. See https://github.com/mozilla/geckodriver/releases/tag/v0.31.0 and https://github.com/mozilla/geckodriver/issues/2010 This change adds the TMPDIR environment to allow testing with the Snap version of Firefox. The downside is a possibly orphan directory (~/tmp) containing geckodriver and v8-compile-cache-1000.
This commit is contained in:
parent
bd4b4233bf
commit
15e4b75986
@ -15,6 +15,10 @@ wasm-pack build $WASM_PACK_FLAGS --target bundler --weak-refs
|
|||||||
# Install test deps and run test suite
|
# Install test deps and run test suite
|
||||||
cd tests
|
cd tests
|
||||||
npm install
|
npm install
|
||||||
|
original_tmpdir=$TMPDIR
|
||||||
|
mkdir --parents ~/tmp
|
||||||
|
export TMPDIR=~/tmp
|
||||||
npm run test:headless
|
npm run test:headless
|
||||||
|
export TMPDIR=$original_tmpdir
|
||||||
|
|
||||||
popd &> /dev/null
|
popd &> /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user