From 58f0ab64f317f4cb536ba74c981f93c5dedc792e Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Sat, 27 Jul 2019 16:54:43 +0200 Subject: [PATCH] travis: remove the check for the nvidia plugin --- .travis.yml | 3 ++- plugins/gpu/nvidia_smi_.nocheck | 0 t/test.t | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 plugins/gpu/nvidia_smi_.nocheck diff --git a/.travis.yml b/.travis.yml index 28839adc..8120a60d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,8 +58,9 @@ install: - cpanm --notest XML::Simple - cpanm --notest XML::Smart - cpanm --notest XML::Twig - - cpanm --notest nvidia::ml - cpanm --notest experimental + # Modules used bu plugins, but not compiling from CPAN + # - cpanm --notest nvidia::ml # Modules used by plugins, but missing on cpan # - File::Tail::Multi # - Sun::Solaris::Kstat diff --git a/plugins/gpu/nvidia_smi_.nocheck b/plugins/gpu/nvidia_smi_.nocheck new file mode 100644 index 00000000..e69de29b diff --git a/t/test.t b/t/test.t index db30c126..f0782718 100644 --- a/t/test.t +++ b/t/test.t @@ -48,7 +48,11 @@ sub process_file { my ( $file, $filename, $interpreter, $arguments ) = @_; use v5.10.1; - if ( ! -x $file ) { + if ( -r "$file.nocheck") { + skip( sprintf("\nFile '%s' has a .nocheck flag. Ignoring\n", $file), 1); + pass("Not pretending everything is ok"); + } + elsif ( ! -x $file ) { # missing executable flag diag( sprintf("\nFile '%s' lacks executable permission bits. Maybe try 'chmod +x $file'?\n",