Actions

icon Post
text/html Subscribe
text/html Unsubscribe

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

[PATCH] Crash on new suite creation


  • To: qmtest@xxxxxxxxxxxxxxxx
  • Subject: [PATCH] Crash on new suite creation
  • From: Vladimir Prus <ghost@xxxxxxxxx>
  • Date: Wed, 6 Feb 2002 13:27:40 +0300

Starting with tdb in tutorial, this command sequence leads to crash:

Create test a.b of class Python.ExecTest with 'pass' as expression.
Choose File->New Suite
Set "functional" as suite name.
Click "Next"
Watch crash. 

The patch below seems to fix the problem:

Index: qm/test/file_database.py
===================================================================
RCS file: /home/qm/Repository/qm/qm/test/file_database.py,v
retrieving revision 1.4
diff -u -r1.4 file_database.py
--- qm/test/file_database.py	2002/01/02 18:49:14	1.4
+++ qm/test/file_database.py	2002/02/06 10:23:12
@@ -521,7 +521,7 @@
                 and self._IsSuiteFile(entry_path)):
                 labels.extend(self._GetLabels(entry_path,
                                               scan_subdirs,
-                                              as_absolute(root),
+                                              qm.label.join(label, root),
                                               predicate))
 
         return labels


There's yet another problem: using tutorial tdb, attempt to create suite 
named "c.d" will show a screen for selecting tests, when no tests are shown. 
Is this a reasonable behaviour? Further, EditSuite functionality seems to not 
work. Am I missing something?

- Volodya