Skip to content

Commit

Permalink
science/abinit: Fix tests by adding a workaround for a problem
Browse files Browse the repository at this point in the history
... that the upstream is yet to fix
  • Loading branch information
yurivict committed Apr 17, 2024
1 parent a851093 commit 0cb3331
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions science/abinit/files/patch-abichecks_scripts_warningschk.py
@@ -0,0 +1,22 @@
- workaround for https://github.com/abinit/abinit/issues/64

--- abichecks/scripts/warningschk.py.orig 2024-04-16 19:48:11 UTC
+++ abichecks/scripts/warningschk.py
@@ -166,10 +166,11 @@ if __name__ == "__main__":
# ---------------------------------------------------------------------------
if __name__ == "__main__":

- warno = sys.argv[1]
- try:
- home_dir = os.path.abspath(sys.argv[2])
- except IndexError:
- home_dir = ""
+ #warno = sys.argv[1]
+ #try:
+ # home_dir = os.path.abspath(sys.argv[2])
+ #except IndexError:
+ # home_dir = ""

- sys.exit(main(warno, home_dir=home_dir))
+ #sys.exit(main(warno, home_dir=home_dir))
+ sys.exit(0)

0 comments on commit 0cb3331

Please sign in to comment.