mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-11-25 10:10:41 -06:00
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
|
||||
cd tests
|
||||
npm install
|
||||
original_tmpdir=$TMPDIR
|
||||
mkdir --parents ~/tmp
|
||||
export TMPDIR=~/tmp
|
||||
npm run test:headless
|
||||
export TMPDIR=$original_tmpdir
|
||||
|
||||
popd &> /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user