Fix HTML_ONLY env not passed to bench

This commit is contained in:
Wilson Lin 2020-07-25 16:13:56 +10:00
parent 6a025ada3b
commit c2a11c4ee3
1 changed files with 1 additions and 1 deletions

View File

@ -11,6 +11,6 @@ node sizes.js
# We need sudo to use `nice` but want to keep using current `node`, so use explicit path in case sudo decides to ignore PATH.
node_path="$(which node)"
echo "Using Node.js at $node_path"
sudo nice -n -20 taskset -c 1 "$node_path" speeds.js
sudo --preserve-env=HTML_ONLY nice -n -20 taskset -c 1 "$node_path" speeds.js
sudo chown -R "$USER:$USER" results
node graph.js