Disable portable tests, mess with env

This commit is contained in:
Damien Guard 2016-11-22 14:59:33 -08:00
parent 4c4fa2b478
commit 76d058cf7e
No known key found for this signature in database
GPG Key ID: DC14FA2FB1465DB6

View File

@ -8,6 +8,8 @@ portableModeCommonPlatformBehavior = (platform) ->
expect(AtomPortable.isPortableInstall(platform, "C:\\some\\path")).toBe false
describe "without ATOM_HOME environment variable", ->
return # Disabled - interferes with user home directory
environmentAtomHome = undefined
portableAtomHomePath = path.join(path.dirname(process.execPath), "..", ".atom")
portableAtomHomeNaturallyExists = fs.existsSync(portableAtomHomePath)
@ -50,6 +52,8 @@ describe "Set Portable Mode on #win32", ->
fs.removeSync(portableAtomHomeBackupPath) if fs.existsSync(portableAtomHomeBackupPath)
describe "Check for Portable Mode", ->
return # Disabled - interferes with user home directory
describe "Windows", ->
portableModeCommonPlatformBehavior "win32"