Use testuser home directory for npm install

This commit is contained in:
Michel Kaporin
2017-06-21 17:47:20 +02:00
parent d5e10a589f
commit c3a9f2b2b1

View File

@@ -30,14 +30,13 @@ function configureEnvironment {
git config --global user.name "VS Code Agent"
git config --global user.email "monacotools@microsoft.com"
chown -R testuser $AGENT_BUILDDIRECTORY
chown -R testuser /root # to allow 'npm install' to succeed in Express repository
}
function runTest {
pushd test/smoke
npm install
npm run compile
sudo -u testuser xvfb-run -a -s "-screen 0 1024x768x8" node src/main.js --latest "$AGENT_BUILDDIRECTORY/VSCode-linux-ia32/code-insiders"
sudo -u testuser -H xvfb-run -a -s "-screen 0 1024x768x8" node src/main.js --latest "$AGENT_BUILDDIRECTORY/VSCode-linux-ia32/code-insiders"
popd
}