summaryrefslogtreecommitdiff
path: root/src/syncevo/SyncContext.cpp
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2013-04-24 10:10:40 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2013-05-13 17:49:49 +0200
commit8bdea72be5ef7160ebbb2f3517f50c14be5474ab (patch)
treedc06c5f2755e13de8df339f18b3992a67639ea11 /src/syncevo/SyncContext.cpp
parent0f3d2fda7c9c95ebac84eb9bcbc6ab2f77af7e12 (diff)
D-Bus testing: improved running of command line tool
Refactored the code into a new utility base class for use in other tests. Replace pipes with temporary files, using the same base name as the traditional .syncevo.log and .dbus.log. They are numbered (because the command line might be run multiple times per test) and use .out, .err, or .outerr as suffix depending on what kind of output they contain. The advantage is that the output gets recorded permanently. Use that when waiting for command completion times out: in that case, the content of the output file(s) gets added to the exception. The subprocess handle returned by startCmdline() is extended with information about output redirection that is then used by finishCmdline(). This makes one parameter of finishCmdline() redundant.
Diffstat (limited to 'src/syncevo/SyncContext.cpp')
0 files changed, 0 insertions, 0 deletions