Merge pull request #48720 from Ch3LL/mac_file_path

Fix test_managed_source_hash_indifferent_case on macosx to correct tmp path
This commit is contained in:
Nicole Thomas 2018-07-23 18:32:56 -04:00 committed by GitHub
commit ce4e22224e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -668,8 +668,8 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
This is a regression test for Issue #38914 and Issue #48230 (test=true use).
'''
name = os.path.join(TMP, 'source_hash_indifferent_case')
state_name = 'file_|-/tmp/salt-tests-tmpdir/source_hash_indifferent_case_|' \
'-/tmp/salt-tests-tmpdir/source_hash_indifferent_case_|-managed'
state_name = 'file_|-{0}_|' \
'-{0}_|-managed'.format(name)
local_path = os.path.join(FILES, 'file', 'base', 'hello_world.txt')
actual_hash = 'c98c24b677eff44860afea6f493bbaec5bb1c4cbb209c6fc2bbb47f66ff2ad31'
uppercase_hash = actual_hash.upper()