Merge pull request #45112 from Ch3LL/fix-arch

Fix spm big file build test to check /tmp
This commit is contained in:
Nicole Thomas 2017-12-20 17:09:20 -05:00 committed by GitHub
commit 9550e742ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,9 +42,9 @@ class SPMBuildTest(SPMCase, ModuleCase):
test spm build with a big file
'''
# check to make sure there is enough space to run this test
check_space = self.run_function('status.diskusage', ['/'])
space = check_space['/']['available']
if space < 2000000:
check_space = self.run_function('status.diskusage', ['/tmp'])
space = check_space['/tmp']['available']
if space < 3000000000:
self.skipTest('Not enough space on host to run this test')
big_file = self.run_function('cmd.run',