octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62681] pkg test: Tests outside of the specifi


From: INVALID.NOREPLY
Subject: [Octave-bug-tracker] [bug #62681] pkg test: Tests outside of the specified package are being run
Date: Tue, 28 Jun 2022 18:05:12 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62681>

                 Summary: pkg test: Tests outside of the specified package are
being run
                 Project: GNU Octave
               Submitter: alexvong1995
               Submitted: Tue 28 Jun 2022 10:05:10 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 28 Jun 2022 10:05:10 PM UTC By: Anonymous
This bug was originally reported in
https://github.com/cbm755/octsympy/issues/1142

When running "pkg test symbolic" in CI, tests outside of the symbolic package
are being run.

After some debugging, it appears that the m-file
https://hg.savannah.gnu.org/hgweb/octave/file/04120d65778a/scripts/pkg/private/expand_rel_paths.m
is causing problem.

This part of the code


    if (strncmpi (pkg_list{i}.dir, "__OH__", 6))
      pkg_list{i}.dir = [ loc pkg_list{i}.dir(7:end) ];
      pkg_list{i}.archprefix = [ loc pkg_list{i}.archprefix(7:end) ];


assumes "__OH__" is a prefix of "pkg_list{i}.archprefix" without actually
checking it.

In our case, "pkg_list{i}.archprefix" is the empty path, causing "loc" (which
is "/usr") to be prepended to the empty path. The end result is that the tests
of all m-file inside "/usr" are being run.








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62681>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]