From 2dcf1dec32a966fac9c642ea041832474c2ca430 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Sun, 9 Feb 2025 17:09:13 +0100 Subject: [PATCH] fix: clarify that -vv -d are global switches in bug box (#1842) * fix: clarify that -vv -d are global switches in bug box * Fix tests --- src/alire/alire-errors.adb | 3 ++- testsuite/tests/debug/enabled-dump-exception/test.py | 4 ++-- testsuite/tests/misc/env-traceback/test.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/alire/alire-errors.adb b/src/alire/alire-errors.adb index f236e2fe..68ab2233 100644 --- a/src/alire/alire-errors.adb +++ b/src/alire/alire-errors.adb @@ -302,7 +302,8 @@ package body Alire.Errors is Put ("Report at : " & URL); if Log_Level < Debug or else not Log_Debug then - Put ("Re-run with `-vv -d` for a full log and stack trace."); + Put ("Re-run with global switches `-vv -d` " + & "for a full log and stack trace."); end if; if Recoverable then diff --git a/testsuite/tests/debug/enabled-dump-exception/test.py b/testsuite/tests/debug/enabled-dump-exception/test.py index e697921e..0024ec1a 100644 --- a/testsuite/tests/debug/enabled-dump-exception/test.py +++ b/testsuite/tests/debug/enabled-dump-exception/test.py @@ -14,7 +14,7 @@ def check_output(dump): ERROR: Location : .* ERROR: Extra info: Raising forcibly ERROR: Report at : .* -ERROR: Re-run with `-vv -d` for a full log and stack trace.\ +ERROR: Re-run with global switches `-vv -d` for a full log and stack trace.\ ''', dump) @@ -29,7 +29,7 @@ check_output(run_alr('--debug', 'dev', '--raise', assert_match( ".*" "ERROR: Extra info: Raising forcibly.*" - "ERROR: Re-run with `-vv -d` for a full log and stack trace", + "ERROR: Re-run with global switches `-vv -d` for a full log and stack trace", run_alr('dev', '--raise', debug=False, complain_on_error=False).out ) diff --git a/testsuite/tests/misc/env-traceback/test.py b/testsuite/tests/misc/env-traceback/test.py index 4f257df9..2c54187c 100644 --- a/testsuite/tests/misc/env-traceback/test.py +++ b/testsuite/tests/misc/env-traceback/test.py @@ -12,7 +12,7 @@ ERROR: .* BEGIN Alire bug detected .* ERROR: Location : .* ERROR: Extra info: Raising forcibly ERROR: Report at : .* -ERROR: Re-run with `-vv -d` for a full log and stack trace. +ERROR: Re-run with global switches `-vv -d` for a full log and stack trace. ERROR: .* END Alire bug detected .*\ """, run_alr("dev", "--raise", -- 2.39.5