diff --git a/.github/workflows/check_gdb_consts.yml b/.github/workflows/check_gdb_consts.yml index 203b17f52d..e4e4e76014 100644 --- a/.github/workflows/check_gdb_consts.yml +++ b/.github/workflows/check_gdb_consts.yml @@ -26,4 +26,6 @@ jobs: - name: Regenerate GDB constants run: python3 scripts/gdb/scripts/generate_all.py - name: Check that repository is clean - run: git diff --exit-code >/dev/null 2>&1 || (echo "GDB constants are out of date. Please run: python3 scripts/gdb/scripts/generate_all.py"; false) + run: | + git diff --exit-code >/dev/null 2>&1 || \ + (echo "GDB constants are out of date. Please run: python3 scripts/gdb/scripts/generate_all.py"; false) diff --git a/scripts/gdb/scripts/generate_all.py b/scripts/gdb/scripts/generate_all.py index d4a970ac80..67f175e04f 100644 --- a/scripts/gdb/scripts/generate_all.py +++ b/scripts/gdb/scripts/generate_all.py @@ -9,7 +9,7 @@ Usage (from the GDB script root): python3 scripts/generate_all.py """ -import importlib +import importlib.util import sys from pathlib import Path