Closed Bug 482961 Opened 15 years ago Closed 15 years ago

a bad SOLO_FILE should produce an useful error

Categories

(Testing :: XPCShell Harness, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: mak, Assigned: ted)

References

Details

(Keywords: regression, Whiteboard: [Fixed by bug 491784])

Today i was trying to execute a single test using SOLO_FILE, i generate it through a script that was wrongly adding a leading /.
This always worked, while it is not anymore now, removing the leading / has solved the problem, but no useful error was printed out for having a bad SOLO_FILE.

output was:

make: Entering directory `/c/obj-i686-pc-mingw32/browser/toolkit/components/places/tests'
c:/mozilla-build/python25/python.exe \
          /C/mozilla/testing/xpcshell/runxpcshelltests.py \
          --test=/unit/test_history_sidebar.js \
          ../../../../dist/bin/xpcshell \
          /C/mozilla \
          ../../../../_tests/xpcshell/test_places/autocomplete ../../../../_tests/xpcshell/test_places/sync ../../../../_tests/xpcshell/test_places/bookmarks ../../../../_tests/xpcshell/test_places/queries ../../../../_tests/xpcshell/test_places/unit
make: Leaving directory `/c/obj-i686-pc-mingw32/browser/toolkit/components/places/tests'
Serge: did you fix this in another bug somewhere? (I think you did.)
make SOLO_FILE=test_history_sidebar.js -C objdir/toolkit/components/places/tests check-one
make SOLO_FILE=unit/test_history_sidebar.js -C objdir/toolkit/components/places/tests check-one
{
TEST-PASS | [...]/test_history_sidebar.js | test passed
+
INFO | Passed: 1
}

make SOLO_FILE=/unit/test_history_sidebar.js -C objdir/toolkit/components/places/tests check-one
{
TEST-UNEXPECTED-FAIL | runxpcshelltests.py | No tests run. Did you pass an invalid --test-path?
+
INFO | Failed: 1
}
Status: NEW → RESOLVED
Closed: 15 years ago
Depends on: 491784
Flags: in-testsuite-
Keywords: regression
Resolution: --- → FIXED
Whiteboard: [Fixed by bug 491784]
Target Milestone: --- → mozilla1.9.2a1
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.