OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001045OMNeT++command line toolspublic2018-06-19 16:482018-06-19 16:48
Assigned To 
PlatformOSOS Version
Product Version5.4 
Target VersionFixed in Version 
Summary0001045: opp_runall dumps Python stack trace instead of proper, human-readable error reporting
DescriptionExample: trying to run a nonexistent program ./foo:

$ opp_runall ./foo
Traceback (most recent call last):
  File "/home/andras/projects/omnetpp/bin/opp_runall", line 218, in <module>
  File "/home/andras/projects/omnetpp/bin/opp_runall", line 64, in run
    runNumbers = self.resolveRunNumbers(opts.simProgArgs)
  File "/home/andras/projects/omnetpp/bin/opp_runall", line 115, in resolveRunNumbers
    output = subprocess.check_output(tmpArgs)
  File "/usr/lib/python2.7/", line 567, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

The expected output would be something like this:
"Error running simulation: ./foo: No such file or directory" (and no stack trace)

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-06-19 16:48 andras New Issue

Copyright © 2000 - 2022 MantisBT Team
Powered by Mantis Bugtracker