From 75a1b5dac1cd13f48515432d46311fa0694d0d5f Mon Sep 17 00:00:00 2001 From: "Jose D. Gomez R" Date: Wed, 20 Dec 2023 14:07:39 +0100 Subject: [PATCH] Align example distribution with openqa docs & best practices - Align `tests/boot.pm` with the documentation. It should `use Mojo::Base` as the docs state. - Add `use strict/warnings` for non-`Mojo::Base` modules (`main.pm`). --- main.pm | 2 ++ tests/boot.pm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.pm b/main.pm index 7134c7f..8b29f42 100644 --- a/main.pm +++ b/main.pm @@ -2,6 +2,8 @@ # SPDX-License-Identifier: GPL-2.0-or-later use strict; +use warnings; + use testapi; use autotest; diff --git a/tests/boot.pm b/tests/boot.pm index 45ec6b0..7b4f0e2 100644 --- a/tests/boot.pm +++ b/tests/boot.pm @@ -1,8 +1,8 @@ # Copyright 2014-2018 SUSE LLC # SPDX-License-Identifier: GPL-2.0-or-later -use base 'basetest'; -use strict; +use Mojo::Base "basetest"; + use testapi; sub run {