Changeset 163:b42982058cb2
- Timestamp:
- 05/07/12 17:31:09 (13 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pyuipc_sim.py
r133 r163 932 932 self.daemon = True 933 933 934 self._client = Client("localhost") 934 host = sys.argv[1] if len(sys.argv)>1 else "localhost" 935 self._client = Client(host) 935 936 936 937 self._valueHandlers = {} -
test/test.sh
r89 r163 4 4 sim="${scriptdir}/../src/mlx/pyuipc_sim.py" 5 5 6 host="localhost" 7 if test $# -gt 1; then 8 host=$2 9 fi 10 6 11 oldIFS="${IFS}" 7 12 IFS=$'\n' 8 13 for line in `cat $1`; do 9 14 read -p "$line" 10 echo $line | python "${sim}" >/dev/null15 echo $line | python "${sim}" "${host}" >/dev/null 11 16 done 12 17 IFS="${oldIFS}"
Note:
See TracChangeset
for help on using the changeset viewer.