We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Get PFS test working.
PFS does not produce history files because it does not set HIST_N or HIST_OPTION. The test fails because it tries to move history files that aren't there.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `utils/python/CIME/SystemTests/pfs.py`
Content:
```
1 """
2 CIME performance test  This class inherits from SystemTestsCommon
3 
4 20 days performance test, no restart files written
5 """
6 
7 from CIME.XML.standard_module_setup import *
8 from CIME.SystemTests.system_tests_common import SystemTestsCommon
9 
10 logger = logging.getLogger(__name__)
11 
12 class PFS(SystemTestsCommon):
13 
14     def __init__(self, case):
15         """
16         initialize an object interface to the PFS system test
17         """
18         SystemTestsCommon.__init__(self, case)
19 
20     def run_phase(self):
21         self._case.set_value("STOP_OPTION", "ndays")
22         self._case.set_value("STOP_N", 20)
23         self._case.set_value("REST_OPTION","none")
24         self._case.set_value("CONTINUE_RUN", False)
25         self._case.flush()
26 
27         logger.info("doing an 20 day initial test, no restarts written")
28         self.run_indv()
29
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/utils/python/CIME/SystemTests/pfs.py b/utils/python/CIME/SystemTests/pfs.py
--- a/utils/python/CIME/SystemTests/pfs.py
+++ b/utils/python/CIME/SystemTests/pfs.py
@@ -18,11 +18,5 @@
         SystemTestsCommon.__init__(self, case)
 
     def run_phase(self):
-        self._case.set_value("STOP_OPTION", "ndays")
-        self._case.set_value("STOP_N", 20)
-        self._case.set_value("REST_OPTION","none")
-        self._case.set_value("CONTINUE_RUN", False)
-        self._case.flush()
-
         logger.info("doing an 20 day initial test, no restarts written")
-        self.run_indv()
+        self.run_indv(suffix=None)

{"golden_diff": "diff --git a/utils/python/CIME/SystemTests/pfs.py b/utils/python/CIME/SystemTests/pfs.py\n--- a/utils/python/CIME/SystemTests/pfs.py\n+++ b/utils/python/CIME/SystemTests/pfs.py\n@@ -18,11 +18,5 @@\n         SystemTestsCommon.__init__(self, case)\n \n     def run_phase(self):\n-        self._case.set_value(\"STOP_OPTION\", \"ndays\")\n-        self._case.set_value(\"STOP_N\", 20)\n-        self._case.set_value(\"REST_OPTION\",\"none\")\n-        self._case.set_value(\"CONTINUE_RUN\", False)\n-        self._case.flush()\n-\n         logger.info(\"doing an 20 day initial test, no restarts written\")\n-        self.run_indv()\n+        self.run_indv(suffix=None)\n", "issue": "Get PFS test working.\nPFS does not produce history files because it does not set HIST_N or HIST_OPTION. The test fails because it tries to move history files that aren't there.\n\n", "before_files": [{"content": "\"\"\"\nCIME performance test  This class inherits from SystemTestsCommon\n\n20 days performance test, no restart files written\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.SystemTests.system_tests_common import SystemTestsCommon\n\nlogger = logging.getLogger(__name__)\n\nclass PFS(SystemTestsCommon):\n\n    def __init__(self, case):\n        \"\"\"\n        initialize an object interface to the PFS system test\n        \"\"\"\n        SystemTestsCommon.__init__(self, case)\n\n    def run_phase(self):\n        self._case.set_value(\"STOP_OPTION\", \"ndays\")\n        self._case.set_value(\"STOP_N\", 20)\n        self._case.set_value(\"REST_OPTION\",\"none\")\n        self._case.set_value(\"CONTINUE_RUN\", False)\n        self._case.flush()\n\n        logger.info(\"doing an 20 day initial test, no restarts written\")\n        self.run_indv()\n", "path": "utils/python/CIME/SystemTests/pfs.py"}], "after_files": [{"content": "\"\"\"\nCIME performance test  This class inherits from SystemTestsCommon\n\n20 days performance test, no restart files written\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.SystemTests.system_tests_common import SystemTestsCommon\n\nlogger = logging.getLogger(__name__)\n\nclass PFS(SystemTestsCommon):\n\n    def __init__(self, case):\n        \"\"\"\n        initialize an object interface to the PFS system test\n        \"\"\"\n        SystemTestsCommon.__init__(self, case)\n\n    def run_phase(self):\n        logger.info(\"doing an 20 day initial test, no restarts written\")\n        self.run_indv(suffix=None)\n", "path": "utils/python/CIME/SystemTests/pfs.py"}]}