File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 13
13
# software without disclosing the source code of your own applications. To purchase
14
14
# a commercial license, send an email to [email protected] .
15
15
import os
16
- import platform
17
16
18
17
19
- def test_cache_clean (run_command ):
18
+ def test_cache_clean (run_command , data_dir ):
20
19
"""
21
20
Clean the cache under arduino caching file directory which is
22
21
"<Arduino configure file path>/staging"
@@ -31,11 +30,4 @@ def test_cache_clean(run_command):
31
30
result = run_command ("cache clean" )
32
31
assert result .ok
33
32
34
- running_platform = platform .system ()
35
- homeDir = os .path .expanduser ("~" )
36
- if running_platform == "Linux" :
37
- assert not (os .path .isdir (homeDir + ".arduino15/staging" ))
38
- elif running_platform == "Darwin" :
39
- assert not (os .path .isdir (homeDir + "Library/Arduino15/staging" ))
40
- elif running_platform == "Windows" :
41
- assert not (os .path .isdir (homeDir + "Arduino15/staging" ))
33
+ assert not os .path .isdir (os .path .join (data_dir , "staging" ))
You can’t perform that action at this time.
0 commit comments