Skip to content

Commit

Permalink
Remove unused NERSC function
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder committed Nov 29, 2023
1 parent d60d5bd commit a67572c
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/integration/test_all_sets_image_diffs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import re
import shutil
import subprocess
import sys
from typing import List

Expand Down Expand Up @@ -380,31 +379,6 @@ def _check_streamflow_plots(self):
self._check_html_image(full_html_path, png_path, full_png_path)


def _move_to_NERSC_webserver(machine_path_re_str, html_prefix_format_str, results_dir):
command = "git rev-parse --show-toplevel"
top_level = subprocess.check_output(command.split()).decode("utf-8").splitlines()[0]
match = re.search(machine_path_re_str, top_level)
if match:
username = match.group(1)
else:
message = "Username could not be extracted from top_level={}".format(top_level)
raise RuntimeError(message)

html_prefix = html_prefix_format_str.format(username)
logger.info("html_prefix={}".format(html_prefix))
new_results_dir = "{}/{}".format(html_prefix, results_dir)
logger.info("new_results_dir={}".format(new_results_dir))
if os.path.exists(new_results_dir):
command = "rm -r {}".format(new_results_dir)
subprocess.check_output(command.split())
command = "mv {} {}".format(results_dir, new_results_dir)
subprocess.check_output(command.split())
command = "chmod -R 755 {}".format(new_results_dir)
subprocess.check_output(command.split())

return new_results_dir


def _compare_images(
mismatched_images: List[str],
image_name: str,
Expand Down

0 comments on commit a67572c

Please sign in to comment.