Fix spm big file build test to check /tmp

This commit is contained in:
Ch3LL 2017-12-20 14:40:10 -05:00
parent 71f9c7ee49
commit 1bd7110a14
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73

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',