do not remove folder after failing permissions test

This commit is contained in:
Gleb Bahmutov
2017-05-30 18:12:55 -04:00
parent 5d08d63982
commit 0b53bc6812
2 changed files with 7 additions and 5 deletions
+2
View File
@@ -183,8 +183,10 @@ jobs:
name: Server integration tests
command: |
if [ $CIRCLE_NODE_INDEX == 0 ]; then
whoami
npm run all test-integration -- --package server
fi
#
# things to run in the 2nd CI container
#
@@ -556,7 +556,7 @@ describe "lib/cypress", ->
## for headed projects!
## also make sure we test the rest of the integration functionality
## for headed errors! <-- not unit tests, but integration tests!
it "logs error and exits when project folder has read permissions only and cannot write cypress.json", ->
it.only "logs error and exits when project folder has read permissions only and cannot write cypress.json", ->
permissionsPath = path.resolve("./permissions")
fs.ensureDirAsync(permissionsPath)
@@ -564,10 +564,10 @@ describe "lib/cypress", ->
fs.chmodAsync(permissionsPath, "111")
.then =>
cypress.start(["--project=#{permissionsPath}", "--cli-version"])
.then =>
fs.chmodAsync(permissionsPath, "644")
.then =>
fs.removeAsync(permissionsPath)
# .then =>
# fs.chmodAsync(permissionsPath, "644")
# .then =>
# fs.removeAsync(permissionsPath)
.then =>
@expectExitWithErr("ERROR_WRITING_FILE", permissionsPath)