http://bugzilla.moblin.org/show_bug.cgi?id=10476
Summary: By dbus, failed syncevolution commands cannot return
error to local terminal
Classification: Moblin Projects
Product: SyncEvolution
Version: upstream
Platform: Netbook
OS/Version: Moblin Linux
Status: NEW
Severity: normal
Priority: Undecided
Component: SyncEvolution
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected]
syncevolution: 0.9.99.19
Description:
=================
This issue was found in QA's autotest cases. When some commands failed
(expectedly), we still got the return value 0 in terminal.
For example, take those steps:
1. mkdir /tmp/empty (create a blank folder to do a failed restore)
2. syncevolution --restore /tmp/empty --before test addressbook (should fail)
3. fail info output: [ERROR] /tmp/empty/addressbook.before: no such
database......
4. echo $? (get return value of 'syncevolution --restore')
5. the command return value is 0 ---- Should be 1
Then I added '--daemon=no' to that restore command, then $?=1. So, using dbus,
the command line error cannot be got in local terminal.
Expectation:
=================
We need to get correct return value. It would affect our auto cases, for
default daemon=yes.
--
Configure bugmail: http://bugzilla.moblin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching someone on the CC list of the bug.
_______________________________________________
Syncevolution-issues mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution-issues