]> git.sur5r.net Git - i3/i3/blobdiff - testcases/lib/StatusLine.pm
Replace http:// with https:// where applicable
[i3/i3] / testcases / lib / StatusLine.pm
index 379fd3d6c133bb6f1a0524fd61639795a98199f0..2cf756a05715acaf8b702b18638344629921c88b 100644 (file)
@@ -17,9 +17,11 @@ my $tests_total;
 
 sub noninteractive {
     # CONTINUOUS_INTEGRATION gets set when running under Travis, see
-    # http://docs.travis-ci.com/user/ci-environment/ and
+    # https://docs.travis-ci.com/user/ci-environment/ and
     # https://github.com/travis-ci/travis-ci/issues/1337
-    return (! -t STDOUT) || $ENV{CONTINUOUS_INTEGRATION} eq 'true';
+    return (! -t STDOUT) || (
+        defined($ENV{CONTINUOUS_INTEGRATION}) &&
+        $ENV{CONTINUOUS_INTEGRATION} eq 'true');
 }
 
 # setup %ansi_line_upwards to map all working displays to the
@@ -44,8 +46,8 @@ sub status_init {
     status_completed(0);
 }
 
-# generates the status text, prints it in the appropiate line
-# and returns it, so it can be used in conjuction with C<Log()>
+# generates the status text, prints it in the appropriate line
+# and returns it, so it can be used in conjunction with C<Log()>
 sub status {
     my ($display, $msg) = @_;
     my $status = "[$display] $msg";