FAIL_FILE = f"{IMAGES_DIR}/failed"
MAX_FAIL = 3
FAIL_CLEANUP_DAYS = 90
-UPGRATE_TOOLS_DIR='/upgrade-tools/'
+UPGRADE_TOOLS_DIR='/upgrade-tools/'
class TotaDirType(Enum):
return None
def get_tota_dir(self, target_cfg_name, tota_dir_type):
- BASE_PATH = os.path.join(UPGRATE_TOOLS_DIR, "mk_delta")
+ BASE_PATH = os.path.join(UPGRADE_TOOLS_DIR, "mk_delta")
if tota_dir_type == TotaDirType.Old:
return os.path.join(BASE_PATH, target_cfg_name, "data", "old_tar")
self.place_images_in_appropriate_dirs(order)
build_type = "full" if order.delta_type == DeltaType.full else "common"
- args = [os.path.join(UPGRATE_TOOLS_DIR, "scripts/delta-generation.sh"),
- UPGRATE_TOOLS_DIR,
+ args = [os.path.join(UPGRADE_TOOLS_DIR, "scripts/delta-generation.sh"),
+ UPGRADE_TOOLS_DIR,
order.target_cfg_name(),
build_type]
process = subprocess.run(args, check=True)