Commit 6ebc3c3b authored by Chris Lamb's avatar Chris Lamb 💬

Warn about packages that use the deprecated ADTTMP autopkgtest variable.

parent dab49016
Pipeline #80841 passed with stages
in 78 minutes and 27 seconds
......@@ -244,6 +244,15 @@ sub check_test_file {
);
} elsif (not $index->is_open_ok) {
$self->tag('runtime-test-file-is-not-a-regular-file', $path);
} else {
my $fd = $index->open;
while (my $x = <$fd>) {
if ($x =~ m/ADTTMP/) {
$self->tag('uses-deprecated-adttmp', $path, "(line $.)");
last;
}
}
close($fd);
}
# Test files are allowed not to be executable.
return;
......
#!/bin/sh
set -e
WORKDIR="$ADTTMP/$(basename $0)"
WORKDIR="$AUTOPKGTEST_TMP/$(basename $0)"
export LINTIAN_TEST_INSTALLED=yes
......
Tag: uses-deprecated-adttmp
Severity: normal
Certainty: certain
Check: testsuite
Info: The specified test file appears to use the deprecated
<tt>ADTTMP</tt> variable.
.
Please replace this with <tt>AUTOPKGTEST_TMP</tt>.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment