File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1313# software without disclosing the source code of your own applications. To purchase
1414# a commercial license, send an email to license@arduino.cc.
1515import os
16- import platform
1716
1817
19- def test_cache_clean (run_command ):
18+ def test_cache_clean (run_command , data_dir ):
2019 """
2120 Clean the cache under arduino caching file directory which is
2221 "<Arduino configure file path>/staging"
@@ -31,11 +30,4 @@ def test_cache_clean(run_command):
3130 result = run_command ("cache clean" )
3231 assert result .ok
3332
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