Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ur-build-hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ jobs:

- name: Get information about platform
if: ${{ always() }}
run: ${{github.workspace}}/unified-runtime/.github/scripts/get_system_info.sh
run: ${{github.workspace}}/devops/scripts/get_system_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import shutil
from pathlib import Path
from .result import Result
from utils.result import Result
from options import options
from utils.utils import download, run
import urllib.request
Expand Down Expand Up @@ -55,16 +55,25 @@ def create_data_path(self, name, skip_data_dir=False):
data_path = os.path.join(self.directory, name)
else:
data_path = os.path.join(self.directory, "data", name)
if options.rebuild and Path(data_path).exists():
if options.redownload and Path(data_path).exists():
shutil.rmtree(data_path)

Path(data_path).mkdir(parents=True, exist_ok=True)

return data_path

def download(self, name, url, file, untar=False, unzip=False, skip_data_dir=False):
def download(
self,
name,
url,
file,
untar=False,
unzip=False,
skip_data_dir=False,
checksum="",
):
self.data_path = self.create_data_path(name, skip_data_dir)
return download(self.data_path, url, file, untar, unzip)
return download(self.data_path, url, file, untar, unzip, checksum)

def name(self):
raise NotImplementedError()
Expand Down
Loading
Loading