@@ -76,8 +76,35 @@ def _emscripten_cache_impl(repository_ctx):
76
76
repository_ctx .report_progress ("Building secondary cache" )
77
77
result = repository_ctx .execute (embuilder_args , quiet = False )
78
78
if result .return_code != 0 :
79
+ ### TESTING
79
80
print ('stderr = ' + result .stderr )
80
81
print ('stdout = ' + result .stdout )
82
+ print ('---------------------------------------' )
83
+
84
+ dir_result = repository_ctx .execute (['dir' ], quiet = False , working_directory = str (nodejs_root ))
85
+ print ('dir_result(nodejs_root).return_code = {}\n \n ' .format (dir_result .return_code ))
86
+ print ('dir_result(nodejs_root).stderr = {}\n \n ' .format (dir_result .stderr ))
87
+ print ('dir_result(nodejs_root).stdout = {}\n \n ' .format (dir_result .stdout ))
88
+
89
+ acl_result = repository_ctx .execute (["Get-Acl" , "-Path" , "(Get-Location)" ], quiet = False , working_directory = str (nodejs_root ))
90
+ print ('acl_result(nodejs_root).return_code = {}\n \n ' .format (acl_result .return_code ))
91
+ print ('acl_result(nodejs_root).stderr = {}\n \n ' .format (acl_result .stderr ))
92
+ print ('acl_result(nodejs_root).stdout = {}\n \n ' .format (acl_result .stdout ))
93
+
94
+ print ('---------------------------------------' )
95
+
96
+ nodejs_bindir = nodejs_root .get_child ("bin" )
97
+ dir_result = repository_ctx .execute (['dir' ], quiet = False , working_directory = str (nodejs_bindir ))
98
+ print ('dir_result(nodejs_bindir).return_code = {}\n \n ' .format (dir_result .return_code ))
99
+ print ('dir_result(nodejs_bindir).stderr = {}\n \n ' .format (dir_result .stderr ))
100
+ print ('dir_result(nodejs_bindir).stdout = {}\n \n ' .format (dir_result .stdout ))
101
+
102
+ acl_result = repository_ctx .execute (["Get-Acl" , "-Path" , "(Get-Location)" ], quiet = False , working_directory = str (nodejs_bindir ))
103
+ print ('acl_result(nodejs_root).return_code = {}\n \n ' .format (acl_result .return_code ))
104
+ print ('acl_result(nodejs_root).stderr = {}\n \n ' .format (acl_result .stderr ))
105
+ print ('acl_result(nodejs_root).stdout = {}\n \n ' .format (acl_result .stdout ))
106
+
107
+ ### TESTING
81
108
fail ("Embuilder exited with a non-zero return code" )
82
109
# Override Emscripten's cache with the secondary cache
83
110
default_config += "CACHE = '{}'\n " .format (cache_path )
0 commit comments