From 83f585fa482d6b210aaa56ec19f1384cdce8933a Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 17 Aug 2026 09:05:07 +0000 Subject: [PATCH] test suite: minor fixes and cleanups --- test/cmdtest_d/cfgfile.py | 6 +++--- test/test-release.d/cfg.sh | 21 ++++++++++----------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/test/cmdtest_d/cfgfile.py b/test/cmdtest_d/cfgfile.py index 4edb378d..07ecd5b6 100755 --- a/test/cmdtest_d/cfgfile.py +++ b/test/cmdtest_d/cfgfile.py @@ -130,7 +130,7 @@ class CmdTestCfgFile(CmdTestBase): e = CfgFileSampleUsr.altered_by_user_fs.format(self.path('sample')) return self.bad_sample(s, e) - def old_sample_common(self, old_set=False, args=[], pexpect_spawn=False): + def _old_sample_common(self, old_set=False, args=[], pexpect_spawn=False): d = ( self.read_from_cfgfile('sys').replace('monero_', 'zcash_').splitlines() + ['', '# Uncomment to make foo true:', '# foo true'] @@ -175,11 +175,11 @@ class CmdTestCfgFile(CmdTestBase): def old_sample(self): self.write_to_cfgfile('usr', ['testnet true', 'rpc_password passwOrd']) - return self.old_sample_common(args=['parse_test']) + return self._old_sample_common(args=['parse_test']) def old_sample_bad_var(self): self.write_to_cfgfile('usr', ['foo true', 'bar false']) - t = self.old_sample_common( + t = self._old_sample_common( old_set = True, pexpect_spawn = gc.platform != 'win32') t.expect('unrecognized option') diff --git a/test/test-release.d/cfg.sh b/test/test-release.d/cfg.sh index 3b44ac41..fcff9a99 100755 --- a/test/test-release.d/cfg.sh +++ b/test/test-release.d/cfg.sh @@ -74,29 +74,28 @@ init_tests() { d_ruff="code errors with Ruff static analyzer" e_ruff="Error checking failed!" t_ruff=" - b $ruff check setup.py - b $ruff check mmgen - b $ruff check test - b $ruff check examples + - $ruff check setup.py + - $ruff check mmgen + - $ruff check test + - $ruff check examples " d_pylint="code errors with Pylint static analyzer" e_pylint="Error checking failed!" t_pylint=" - b $pylint mmgen - b $pylint test - b $pylint --disable=relative-beyond-top-level test/cmdtest_d - a $pylint --ignore-paths '.*/eth/.*' mmgen - a $pylint --ignore-paths '.*/dep.py,.*/testdep.py' test - a $pylint --ignore-paths '.*/ethdev.py' --disable=relative-beyond-top-level test/cmdtest_d + - $pylint setup.py + - $pylint mmgen + - $pylint test + - $pylint --disable=relative-beyond-top-level test/cmdtest_d - $pylint examples " - if [ "$SKIP_ALT_DEP" ]; then t_pylint_skip='b'; else t_pylint_skip='a'; fi d_bandit="code vulnerabilities with Bandit static analyzer" e_bandit="Error checking failed!" t_bandit=" + - $bandit setup.py - $bandit mmgen + - $bandit examples " d_daemon="low-level subsystems involving coin daemons"