Bug in test framework

Bug #803898 reported by Martin Sandve Alnæs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Undecided
Johan Hake

Bug Description

When running the dolfin tests I always get the following error:

Traceback (most recent call last):
  File "test.py", line 71, in <module>
    cppdemos.remove(os.path.join(demodir, 'undocumented', 'quadrature', 'cpp'))
ValueError: list.remove(x): x not in list

Revision history for this message
Johannes Ring (johannr) wrote :

How do you run the tests? One way you can do it is like this:

  ./cmake.local
  cd build
  source dolfin.conf
  make runtests

Revision history for this message
Martin Sandve Alnæs (martinal) wrote : Re: [Bug 803898] Re: Bug in test framework

I did cd test; python test.py.

Martin
Den 30. juni 2011 17.05 skrev "Johannes Ring" <email address hidden>
følgende:
> How do you run the tests? One way you can do it is like this:
>
> ./cmake.local
> cd build
> source dolfin.conf
> make runtests
>
> --
> You received this bug notification because you are a member of DOLFIN
> Core Team, which is subscribed to DOLFIN.
> https://bugs.launchpad.net/bugs/803898
>
> Title:
> Bug in test framework
>
> Status in DOLFIN:
> New
>
> Bug description:
> When running the dolfin tests I always get the following error:
>
> Traceback (most recent call last):
> File "test.py", line 71, in <module>
> cppdemos.remove(os.path.join(demodir, 'undocumented', 'quadrature',
'cpp'))
> ValueError: list.remove(x): x not in list
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dolfin/+bug/803898/+subscriptions

Changed in dolfin:
assignee: nobody → Johannes Ring (johannr)
milestone: none → 1.0-beta
Revision history for this message
Johan Hake (johan-hake) wrote :

The test need to be run from the build directory. When it is done the way Johannes explains above, the cpp test will be built before run.

The error occurs because the script tries to remove a demo it did not find because it was not compiled. I will fix so the test will not raise this error.

Changed in dolfin:
status: New → Confirmed
assignee: Johannes Ring (johannr) → Johan Hake (johan-hake)
status: Confirmed → In Progress
Johan Hake (johan-hake)
Changed in dolfin:
status: In Progress → Fix Committed
Anders Logg (logg)
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.