Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Sep 17, 2024
1 parent 8f917de commit d9bd2df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library_generation/generate_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import shutil

import library_generation.utils.utilities as util
Expand Down Expand Up @@ -48,7 +49,12 @@ def generate_from_yaml(
gen_config=config, library_config=target_libraries, repo_path=repository_path
)
# copy api definition to output folder.
print(
f"Copy api definition from {api_definition_path} to {repo_config.output_folder}"
)
shutil.copytree(api_definition_path, repo_config.output_folder, dirs_exist_ok=True)
print(f"List files in {repo_config.output_folder}")
os.listdir(repo_config.output_folder)

for library_path, library in repo_config.get_libraries().items():
print(f"generating library {library.get_library_name()}")
Expand Down
2 changes: 2 additions & 0 deletions library_generation/test/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def __copy_api_definition(cls, committish: str) -> str:
shutil.copytree(f"{repo_dest}/google", api_temp_dir, dirs_exist_ok=True)
shutil.copytree(f"{repo_dest}/grafeas", api_temp_dir, dirs_exist_ok=True)
shutil.rmtree(repo_dest)
print(f"List files and dirs in {api_temp_dir}")
os.listdir(api_temp_dir)
return api_temp_dir

@classmethod
Expand Down

0 comments on commit d9bd2df

Please sign in to comment.