~/git/oilshell/oil/opy/_tmp/repo-with-opy ~/git/oilshell/oil/opy
asdl/format_test.pyc
..
----------------------------------------------------------------------
Ran 2 tests in 0.027s
OK
(assign name:declare flags:[-r -x])
(assign name:declare flags:[-r -x])(assign name:declare flags:[-r -x])(assign name:declare flags:[-r -x])
(op_array ops:[Plus Plus])
asdl/front_end_test.pyc
.
----------------------------------------------------------------------
Ran 1 test in 0.081s
OK
asdl/gen_python_test.pyc
.........
----------------------------------------------------------------------
Ran 9 tests in 0.005s
OK
-- COMPOUND SUM --
(arith_expr.Var name:x)
(arith_expr.Var name:y)
(arith_expr.Slice a:(arith_expr.Var name:foo))
(arith_expr.FuncCall name:f)
(arith_expr.Const i:66)
(arith_expr.Slice a:(arith_expr.Const i:1) begin:(arith_expr.Const i:5) end:(arith_expr.Const i:2))
-- PRODUCT --
(source_location path:hi line:1 col:2 length:3)
-- SIMPLE SUM --
asdl/typed_arith_parse_test.pyc
---
1+2+3
(arith_expr.Binary
op: '+'
left: (arith_expr.Binary op:'+' left:(arith_expr.Const i:1) right:(arith_expr.Const i:2))
right: (arith_expr.Const i:3)
)
(B '+' (B '+' (1) (2)) (3))
---
1+2*3
(arith_expr.Binary
op: '+'
left: (arith_expr.Const i:1)
right: (arith_expr.Binary op:'*' left:(arith_expr.Const i:2) right:(arith_expr.Const i:3))
)
(B '+' (1) (B '*' (2) (3)))
---
4*(2+3)
(arith_expr.Binary
op: '*'
left: (arith_expr.Const i:4)
right: (arith_expr.Binary op:'+' left:(arith_expr.Const i:2) right:(arith_expr.Const i:3))
)
(B '*' (4) (B '+' (2) (3)))
---
(2+3)*4
(arith_expr.Binary
op: '*'
left: (arith_expr.Binary op:'+' left:(arith_expr.Const i:2) right:(arith_expr.Const i:3))
right: (arith_expr.Const i:4)
)
(B '*' (B '+' (2) (3)) (4))
---
1<2
(arith_expr.Binary op:'<' left:(arith_expr.Const i:1) right:(arith_expr.Const i:2))
(B '<' (1) (2))
---
x=3
(arith_expr.Binary op:'=' left:(arith_expr.Var name:x) right:(arith_expr.Const i:3) spids:[42 43])
(arith_expr.Binary op:'=' left:($ x) right:(3))
---
x = 2*3
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:x)
right: (arith_expr.Binary op:'*' left:(arith_expr.Const i:2) right:(arith_expr.Const i:3))
spids: [42 43]
)
(arith_expr.Binary op:'=' left:($ x) right:(B '*' (2) (3)))
---
x = y
(arith_expr.Binary op:'=' left:(arith_expr.Var name:x) right:(arith_expr.Var name:y) spids:[42 43])
(arith_expr.Binary op:'=' left:($ x) right:($ y))
---
x*y - y*z
(arith_expr.Binary
op: -
left: (arith_expr.Binary op:'*' left:(arith_expr.Var name:x) right:(arith_expr.Var name:y))
right: (arith_expr.Binary op:'*' left:(arith_expr.Var name:y) right:(arith_expr.Var name:z))
)
(B - (B '*' ($ x) ($ y)) (B '*' ($ y) ($ z)))
---
x/y - y%z
(arith_expr.Binary
op: -
left: (arith_expr.Binary op:/ left:(arith_expr.Var name:x) right:(arith_expr.Var name:y))
right: (arith_expr.Binary op:'%' left:(arith_expr.Var name:y) right:(arith_expr.Var name:z))
)
(B - (B / ($ x) ($ y)) (B '%' ($ y) ($ z)))
---
x = y
(arith_expr.Binary op:'=' left:(arith_expr.Var name:x) right:(arith_expr.Var name:y) spids:[42 43])
(arith_expr.Binary op:'=' left:($ x) right:($ y))
---
2 ** 3 ** 2
(arith_expr.Binary
op: '**'
left: (arith_expr.Const i:2)
right: (arith_expr.Binary op:'**' left:(arith_expr.Const i:3) right:(arith_expr.Const i:2))
)
(B '**' (2) (B '**' (3) (2)))
---
a = b = 10
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:a)
right:
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:b)
right: (arith_expr.Const i:10)
spids: [42 43]
)
spids: [42 43]
)
(arith_expr.Binary op:'=' left:($ a) right:(arith_expr.Binary op:'=' left:($ b) right:(10)))
---
x = ((y*4)-2)
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:x)
right:
(arith_expr.Binary
op: -
left: (arith_expr.Binary op:'*' left:(arith_expr.Var name:y) right:(arith_expr.Const i:4))
right: (arith_expr.Const i:2)
)
spids: [42 43]
)
(arith_expr.Binary op:'=' left:($ x) right:(B - (B '*' ($ y) (4)) (2)))
---
x - -y
(arith_expr.Binary
op: -
left: (arith_expr.Var name:x)
right: (arith_expr.Unary op:- a:(arith_expr.Var name:y))
)
(B - ($ x) (U - ($ y)))
---
-1 * -2
(arith_expr.Binary
op: '*'
left: (arith_expr.Unary op:- a:(arith_expr.Const i:1))
right: (arith_expr.Unary op:- a:(arith_expr.Const i:2))
)
(B '*' (U - (1)) (U - (2)))
---
-x * -y
(arith_expr.Binary
op: '*'
left: (arith_expr.Unary op:- a:(arith_expr.Var name:x))
right: (arith_expr.Unary op:- a:(arith_expr.Var name:y))
)
(B '*' (U - ($ x)) (U - ($ y)))
---
x - -234
(arith_expr.Binary
op: -
left: (arith_expr.Var name:x)
right: (arith_expr.Unary op:- a:(arith_expr.Const i:234))
)
(B - ($ x) (U - (234)))
---
x += y += 3
(arith_expr.Binary
op: '+='
left: (arith_expr.Var name:x)
right:
(arith_expr.Binary
op: '+='
left: (arith_expr.Var name:y)
right: (arith_expr.Const i:3)
spids: [42 43]
)
spids: [42 43]
)
(B '+=' ($ x) (B '+=' ($ y) (3)))
---
x[1,2]
(arith_expr.Index
a: (arith_expr.Var name:x)
index: (arith_expr.Binary op:',' left:(arith_expr.Const i:1) right:(arith_expr.Const i:2))
)
(arith_expr.Index a:($ x) index:(B ',' (1) (2)))
---
+1 - +2
(arith_expr.Binary
op: -
left: (arith_expr.Unary op:'+' a:(arith_expr.Const i:1))
right: (arith_expr.Unary op:'+' a:(arith_expr.Const i:2))
)
(B - (U '+' (1)) (U '+' (2)))
---
f[x] += 1
(arith_expr.Binary
op: '+='
left: (arith_expr.Index a:(arith_expr.Var name:f) index:(arith_expr.Var name:x))
right: (arith_expr.Const i:1)
spids: [42 43]
)
(B '+=' (arith_expr.Index a:($ f) index:($ x)) (1))
---
~1 | ~2
(arith_expr.Binary
op: '|'
left: (arith_expr.Unary op:'~' a:(arith_expr.Const i:1))
right: (arith_expr.Unary op:'~' a:(arith_expr.Const i:2))
)
(B '|' (U '~' (1)) (U '~' (2)))
---
x & y | a & b
(arith_expr.Binary
op: '|'
left: (arith_expr.Binary op:'&' left:(arith_expr.Var name:x) right:(arith_expr.Var name:y))
right: (arith_expr.Binary op:'&' left:(arith_expr.Var name:a) right:(arith_expr.Var name:b))
)
(B '|' (B '&' ($ x) ($ y)) (B '&' ($ a) ($ b)))
---
~x ^ y
(arith_expr.Binary
op: '^'
left: (arith_expr.Unary op:'~' a:(arith_expr.Var name:x))
right: (arith_expr.Var name:y)
)
(B '^' (U '~' ($ x)) ($ y))
---
x << y | y << z
(arith_expr.Binary
op: '|'
left: (arith_expr.Binary op:'<<' left:(arith_expr.Var name:x) right:(arith_expr.Var name:y))
right: (arith_expr.Binary op:'<<' left:(arith_expr.Var name:y) right:(arith_expr.Var name:z))
)
(B '|' (B '<<' ($ x) ($ y)) (B '<<' ($ y) ($ z)))
---
a ^= b-1
(arith_expr.Binary
op: '^='
left: (arith_expr.Var name:a)
right: (arith_expr.Binary op:- left:(arith_expr.Var name:b) right:(arith_expr.Const i:1))
spids: [42 43]
)
(B '^=' ($ a) (B - ($ b) (1)))
---
a && b || c && d
(arith_expr.Binary
op: '||'
left: (arith_expr.Binary op:'&&' left:(arith_expr.Var name:a) right:(arith_expr.Var name:b))
right: (arith_expr.Binary op:'&&' left:(arith_expr.Var name:c) right:(arith_expr.Var name:d))
)
(B '||' (B '&&' ($ a) ($ b)) (B '&&' ($ c) ($ d)))
---
!a && !b
(arith_expr.Binary
op: '&&'
left: (arith_expr.Unary op:'!' a:(arith_expr.Var name:a))
right: (arith_expr.Unary op:'!' a:(arith_expr.Var name:b))
)
(B '&&' (U '!' ($ a)) (U '!' ($ b)))
---
a != b && c == d
(arith_expr.Binary
op: '&&'
left: (arith_expr.Binary op:'!=' left:(arith_expr.Var name:a) right:(arith_expr.Var name:b))
right: (arith_expr.Binary op:'==' left:(arith_expr.Var name:c) right:(arith_expr.Var name:d))
)
(B '&&' (B '!=' ($ a) ($ b)) (B '==' ($ c) ($ d)))
---
a > b ? 0 : 1
(arith_expr.Ternary
cond: (arith_expr.Binary op:'>' left:(arith_expr.Var name:a) right:(arith_expr.Var name:b))
true_expr: (arith_expr.Const i:0)
false_expr: (arith_expr.Const i:1)
)
(arith_expr.Ternary cond:(B '>' ($ a) ($ b)) true_expr:(0) false_expr:(1))
---
a > b ? x+1 : y+1
(arith_expr.Ternary
cond: (arith_expr.Binary op:'>' left:(arith_expr.Var name:a) right:(arith_expr.Var name:b))
true_expr: (arith_expr.Binary op:'+' left:(arith_expr.Var name:x) right:(arith_expr.Const i:1))
false_expr: (arith_expr.Binary op:'+' left:(arith_expr.Var name:y) right:(arith_expr.Const i:1))
)
(arith_expr.Ternary cond:(B '>' ($ a) ($ b)) true_expr:(B '+' ($ x) (1)) false_expr:(B '+' ($ y) (1)))
---
1 ? true1 : 2 ? true2 : false
(arith_expr.Ternary
cond: (arith_expr.Const i:1)
true_expr: (arith_expr.Var name:true1)
false_expr:
(arith_expr.Ternary
cond: (arith_expr.Const i:2)
true_expr: (arith_expr.Var name:true2)
false_expr: (arith_expr.Var name:false)
)
)
(arith_expr.Ternary
cond: (1)
true_expr: ($ true1)
false_expr: (arith_expr.Ternary cond:(2) true_expr:($ true2) false_expr:($ false))
)
---
1 ? true1 : (2 ? true2 : false)
(arith_expr.Ternary
cond: (arith_expr.Const i:1)
true_expr: (arith_expr.Var name:true1)
false_expr:
(arith_expr.Ternary
cond: (arith_expr.Const i:2)
true_expr: (arith_expr.Var name:true2)
false_expr: (arith_expr.Var name:false)
)
)
(arith_expr.Ternary
cond: (1)
true_expr: ($ true1)
false_expr: (arith_expr.Ternary cond:(2) true_expr:($ true2) false_expr:($ false))
)
---
1 ? (2 ? true : false1) : false2
(arith_expr.Ternary
cond: (arith_expr.Const i:1)
true_expr:
(arith_expr.Ternary
cond: (arith_expr.Const i:2)
true_expr: (arith_expr.Var name:true)
false_expr: (arith_expr.Var name:false1)
)
false_expr: (arith_expr.Var name:false2)
)
(arith_expr.Ternary
cond: (1)
true_expr: (arith_expr.Ternary cond:(2) true_expr:($ true) false_expr:($ false1))
false_expr: ($ false2)
)
---
1 ? 2 ? true : false1 : false2
(arith_expr.Ternary
cond: (arith_expr.Const i:1)
true_expr:
(arith_expr.Ternary
cond: (arith_expr.Const i:2)
true_expr: (arith_expr.Var name:true)
false_expr: (arith_expr.Var name:false1)
)
false_expr: (arith_expr.Var name:false2)
)
(arith_expr.Ternary
cond: (1)
true_expr: (arith_expr.Ternary cond:(2) true_expr:($ true) false_expr:($ false1))
false_expr: ($ false2)
)
---
x ? 1 : 2, y ? 3 : 4
(arith_expr.Binary
op: ','
left:
(arith_expr.Ternary
cond: (arith_expr.Var name:x)
true_expr: (arith_expr.Const i:1)
false_expr: (arith_expr.Const i:2)
)
right:
(arith_expr.Ternary
cond: (arith_expr.Var name:y)
true_expr: (arith_expr.Const i:3)
false_expr: (arith_expr.Const i:4)
)
)
(B ',' (arith_expr.Ternary cond:($ x) true_expr:(1) false_expr:(2))
(arith_expr.Ternary cond:($ y) true_expr:(3) false_expr:(4))
)
---
!x
(arith_expr.Unary op:'!' a:(arith_expr.Var name:x))
(U '!' ($ x))
---
x--
(arith_expr.Unary op:-- a:(arith_expr.Var name:x))
(U -- ($ x))
---
x[1]--
(arith_expr.Unary op:-- a:(arith_expr.Index a:(arith_expr.Var name:x) index:(arith_expr.Const i:1)))
(U -- (arith_expr.Index a:($ x) index:(1)))
---
--x
(arith_expr.Unary op:-- a:(arith_expr.Var name:x))
(U -- ($ x))
---
++x[1]
(arith_expr.Unary op:'++' a:(arith_expr.Index a:(arith_expr.Var name:x) index:(arith_expr.Const i:1)))
(U '++' (arith_expr.Index a:($ x) index:(1)))
---
!x--
(arith_expr.Unary op:'!' a:(arith_expr.Unary op:-- a:(arith_expr.Var name:x)))
(U '!' (U -- ($ x)))
---
~x++
(arith_expr.Unary op:'~' a:(arith_expr.Unary op:'++' a:(arith_expr.Var name:x)))
(U '~' (U '++' ($ x)))
---
x++ - y++
(arith_expr.Binary
op: -
left: (arith_expr.Unary op:'++' a:(arith_expr.Var name:x))
right: (arith_expr.Unary op:'++' a:(arith_expr.Var name:y))
)
(B - (U '++' ($ x)) (U '++' ($ y)))
---
++x - ++y
(arith_expr.Binary
op: -
left: (arith_expr.Unary op:'++' a:(arith_expr.Var name:x))
right: (arith_expr.Unary op:'++' a:(arith_expr.Var name:y))
)
(B - (U '++' ($ x)) (U '++' ($ y)))
---
x[1]
(arith_expr.Index a:(arith_expr.Var name:x) index:(arith_expr.Const i:1))
(arith_expr.Index a:($ x) index:(1))
---
x[a+b]
(arith_expr.Index
a: (arith_expr.Var name:x)
index: (arith_expr.Binary op:'+' left:(arith_expr.Var name:a) right:(arith_expr.Var name:b))
)
(arith_expr.Index a:($ x) index:(B '+' ($ a) ($ b)))
---
x[1:2]
(arith_expr.Slice a:(arith_expr.Var name:x) begin:(arith_expr.Const i:1) end:(arith_expr.Const i:2))
(arith_expr.Slice a:($ x) begin:(1) end:(2))
---
x = y(2)*3 + y(4)*5
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:x)
right:
(arith_expr.Binary
op: '+'
left:
(arith_expr.Binary
op: '*'
left: (arith_expr.FuncCall name:y args:[(arith_expr.Const i:2)])
right: (arith_expr.Const i:3)
)
right:
(arith_expr.Binary
op: '*'
left: (arith_expr.FuncCall name:y args:[(arith_expr.Const i:4)])
right: (arith_expr.Const i:5)
)
)
spids: [42 43]
)
(arith_expr.Binary
op: '='
left: ($ x)
right:
(B '+' (B '*' (arith_expr.FuncCall name:y args:[(2)]) (3))
(B '*' (arith_expr.FuncCall name:y args:[(4)]) (5))
)
)
---
x(1,2)+y(3,4)
(arith_expr.Binary
op: '+'
left: (arith_expr.FuncCall name:x args:[(arith_expr.Const i:1) (arith_expr.Const i:2)])
right: (arith_expr.FuncCall name:y args:[(arith_expr.Const i:3) (arith_expr.Const i:4)])
)
(B '+' (arith_expr.FuncCall name:x args:[(1) (2)]) (arith_expr.FuncCall name:y args:[(3) (4)]))
---
x(a,b,c[d])
(arith_expr.FuncCall
name: x
args: [
(arith_expr.Var name:a)
(arith_expr.Var name:b)
(arith_expr.Index a:(arith_expr.Var name:c) index:(arith_expr.Var name:d))
]
)
(arith_expr.FuncCall name:x args:[($ a) ($ b) (arith_expr.Index a:($ c) index:($ d))])
---
x(1,2)*j+y(3,4)*k+z(5,6)*l
(arith_expr.Binary
op: '+'
left:
(arith_expr.Binary
op: '+'
left:
(arith_expr.Binary
op: '*'
left: (arith_expr.FuncCall name:x args:[(arith_expr.Const i:1) (arith_expr.Const i:2)])
right: (arith_expr.Var name:j)
)
right:
(arith_expr.Binary
op: '*'
left: (arith_expr.FuncCall name:y args:[(arith_expr.Const i:3) (arith_expr.Const i:4)])
right: (arith_expr.Var name:k)
)
)
right:
(arith_expr.Binary
op: '*'
left: (arith_expr.FuncCall name:z args:[(arith_expr.Const i:5) (arith_expr.Const i:6)])
right: (arith_expr.Var name:l)
)
)
(B '+'
(B '+' (B '*' (arith_expr.FuncCall name:x args:[(1) (2)]) ($ j))
(B '*' (arith_expr.FuncCall name:y args:[(3) (4)]) ($ k))
) (B '*' (arith_expr.FuncCall name:z args:[(5) (6)]) ($ l))
)
---
print(test(2,3))
(arith_expr.FuncCall
name: print
args: [(arith_expr.FuncCall name:test args:[(arith_expr.Const i:2) (arith_expr.Const i:3)])]
)
(arith_expr.FuncCall name:print args:[(arith_expr.FuncCall name:test args:[(2) (3)])])
---
print("x")
(arith_expr.FuncCall name:print args:[(arith_expr.Var name:x)])
(arith_expr.FuncCall name:print args:[($ x)])
---
min(255,n*2)
(arith_expr.FuncCall
name: min
args: [
(arith_expr.Const i:255)
(arith_expr.Binary op:'*' left:(arith_expr.Var name:n) right:(arith_expr.Const i:2))
]
)
(arith_expr.FuncCall name:min args:[(255) (B '*' ($ n) (2))])
---
c = pal[i*8]
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:c)
right:
(arith_expr.Index
a: (arith_expr.Var name:pal)
index: (arith_expr.Binary op:'*' left:(arith_expr.Var name:i) right:(arith_expr.Const i:8))
)
spids: [42 43]
)
(arith_expr.Binary op:'=' left:($ c) right:(arith_expr.Index a:($ pal) index:(B '*' ($ i) (8))))
---
x=1,y=2,z=3
(arith_expr.Binary
op: ','
left:
(arith_expr.Binary
op: ','
left:
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:x)
right: (arith_expr.Const i:1)
spids: [42 43]
)
right:
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:y)
right: (arith_expr.Const i:2)
spids: [42 43]
)
)
right:
(arith_expr.Binary
op: '='
left: (arith_expr.Var name:z)
right: (arith_expr.Const i:3)
spids: [42 43]
)
)
(B ','
(B ',' (arith_expr.Binary op:'=' left:($ x) right:(1)) (arith_expr.Binary op:'=' left:($ y) right:(2))) (arith_expr.Binary op:'=' left:($ z) right:(3))
)got expected error for }: Unexpected end of input
got expected error for ]: can't be used in prefix position
got expected error for {: Unexpected end of input
got expected error for x+1 = y: Can't assign to (arith_expr.Binary op:'+' left:(arith_expr.Var name:x) right:(arith_expr.Const i:1))
got expected error for (x+1)++: Can't assign to (arith_expr.Binary op:'+' left:(arith_expr.Var name:x) right:(arith_expr.Const i:1))
got expected error for foo ? 1 :: Unexpected end of input
got expected error for foo ? 1 : expected :, got
got expected error for %: can't be used in prefix position
got expected error for }: Unexpected end of input
got expected error for {: Unexpected end of input
got expected error for ]: can't be used in prefix position
got expected error for 1 ( 2: (arith_expr.Const i:1) can't be called
got expected error for (x+1) ( 2 ): (arith_expr.Binary op:'+' left:(arith_expr.Var name:x) right:(arith_expr.Const i:1)) can't be called
got expected error for 1 [ 2 ]: (arith_expr.Const i:1) can't be indexed
core/alloc_test.pyc
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
core/comp_ui_test.pyc
[1m[34m hello[0;0m
[2A[7C
[0K[1B[1A[1m[34m hello[0;0m
[2A[7CDISPLAY POS in _PrintCandidates = 5
[0K[1B[1A one two
[2A[7C.....
----------------------------------------------------------------------
Ran 5 tests in 0.059s
OK
[7m RIGHT [0;0m
hello
$ echo
one
two
$ echo WIDTH = 1
reported lines = 4
measured lines = 4
max_len = 53
WIDTH = 10
reported lines = 4
measured lines = 4
max_len = 53
WIDTH = 20
reported lines = 4
measured lines = 4
max_len = 53
WIDTH = 30
reported lines = 4
measured lines = 4
max_len = 53
WIDTH = 40
reported lines = 4
measured lines = 4
max_len = 53
WIDTH = 50
reported lines = 4
measured lines = 4
max_len = 53
WIDTH = 1
reported lines = 3
measured lines = 3
max_len = 13
WIDTH = 10
reported lines = 3
measured lines = 3
max_len = 13
WIDTH = 20
reported lines = 3
measured lines = 3
max_len = 30
WIDTH = 30
reported lines = 3
measured lines = 3
max_len = 40
WIDTH = 40
reported lines = 3
measured lines = 3
max_len = 50
WIDTH = 50
reported lines = 3
measured lines = 3
max_len = 60
WIDTH = 60
reported lines = 3
measured lines = 3
max_len = 70
WIDTH = 1
reported lines = 6
measured lines = 6
max_len = 9
WIDTH = 10
reported lines = 6
measured lines = 6
max_len = 9
WIDTH = 20
reported lines = 3
measured lines = 3
max_len = 17
WIDTH = 30
reported lines = 2
measured lines = 2
max_len = 25
WIDTH = 40
reported lines = 2
measured lines = 2
max_len = 33
WIDTH = 50
reported lines = 1
measured lines = 1
max_len = 49
WIDTH = 1
reported lines = 11
measured lines = 11
max_len = 24
WIDTH = 10
reported lines = 11
measured lines = 11
max_len = 24
WIDTH = 20
reported lines = 11
measured lines = 11
max_len = 26
WIDTH = 30
reported lines = 11
measured lines = 11
max_len = 36
WIDTH = 40
reported lines = 11
measured lines = 11
max_len = 46
WIDTH = 50
reported lines = 11
measured lines = 11
max_len = 56
WIDTH = 60
reported lines = 11
measured lines = 11
max_len = 66
core/completion_test.pyc
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/bin/opy_.py", line 88, in
main(sys.argv)
File "/home/andy/git/oilshell/oil/bin/opy_.py", line 72, in main
sys.exit(AppBundleMain(argv))
File "/home/andy/git/oilshell/oil/bin/opy_.py", line 64, in AppBundleMain
return opy_main.OpyCommandMain(main_argv)
File "/home/andy/git/oilshell/oil/opy/opy_main.py", line 502, in OpyCommandMain
num_ticks = ovm.run_code_object(co, opy_argv)
File "/home/andy/git/oilshell/oil/opy/byterun/execfile.py", line 36, in run_code_object
pyvm2.run_code(vm, code, f_globals=main_mod.__dict__)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 88, in run_code
val = vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
ImportError: No module named testdata.completion
core/id_kind_test.pyc
.
True
['Arith_Amp', 'Arith_AmpEqual', 'Arith_Bang', 'Arith_Caret', 'Arith_CaretEqual', 'Arith_Colon', 'Arith_Comma', 'Arith_DAmp', 'Arith_DEqual', 'Arith_DGreat', 'Arith_DGreatEqual', 'Arith_DLess', 'Arith_DLessEqual', 'Arith_DMinus', 'Arith_DPipe', 'Arith_DPlus', 'Arith_DStar', 'Arith_Equal', 'Arith_Great', 'Arith_GreatEqual', 'Arith_LBracket', 'Arith_LParen', 'Arith_Less', 'Arith_LessEqual', 'Arith_Minus', 'Arith_MinusEqual', 'Arith_NEqual', 'Arith_Percent', 'Arith_PercentEqual', 'Arith_Pipe', 'Arith_PipeEqual', 'Arith_Plus', 'Arith_PlusEqual', 'Arith_QMark', 'Arith_RBrace', 'Arith_RBracket', 'Arith_RParen', 'Arith_Semi', 'Arith_Slash', 'Arith_SlashEqual', 'Arith_Star', 'Arith_StarEqual', 'Arith_Tilde', 'Assign_Declare', 'Assign_Local', 'Assign_None', 'Assign_Readonly', 'Assign_Typeset', 'Backtick_Other', 'Backtick_Quoted', 'Backtick_Right', 'BoolBinary_DEqual', 'BoolBinary_Equal', 'BoolBinary_EqualTilde', 'BoolBinary_GlobDEqual', 'BoolBinary_GlobEqual', 'BoolBinary_GlobNEqual', 'BoolBinary_NEqual', 'BoolBinary_ef', 'BoolBinary_eq', 'BoolBinary_ge', 'BoolBinary_gt', 'BoolBinary_le', 'BoolBinary_lt', 'BoolBinary_ne', 'BoolBinary_nt', 'BoolBinary_ot', 'BoolUnary_G', 'BoolUnary_L', 'BoolUnary_N', 'BoolUnary_O', 'BoolUnary_R', 'BoolUnary_S', 'BoolUnary_a', 'BoolUnary_b', 'BoolUnary_c', 'BoolUnary_d', 'BoolUnary_e', 'BoolUnary_f', 'BoolUnary_g', 'BoolUnary_h', 'BoolUnary_n', 'BoolUnary_o', 'BoolUnary_p', 'BoolUnary_r', 'BoolUnary_s', 'BoolUnary_t', 'BoolUnary_u', 'BoolUnary_v', 'BoolUnary_w', 'BoolUnary_x', 'BoolUnary_z', 'Char_BadBackslash', 'Char_Hex', 'Char_Literals', 'Char_Octal3', 'Char_Octal4', 'Char_OneChar', 'Char_Stop', 'Char_Unicode4', 'Char_Unicode8', 'ControlFlow_Break', 'ControlFlow_Continue', 'ControlFlow_Exit', 'ControlFlow_Return', 'Eof_Backtick', 'Eof_RParen', 'Eof_Real', 'Eol_Tok', 'ExtGlob_At', 'ExtGlob_Bang', 'ExtGlob_Plus', 'ExtGlob_QMark', 'ExtGlob_Star', 'Fd_Name', 'Fd_Number', 'Glob_BadBackslash', 'Glob_Bang', 'Glob_Caret', 'Glob_CleanLiterals', 'Glob_Eof', 'Glob_EscapedChar', 'Glob_LBracket', 'Glob_OtherLiteral', 'Glob_QMark', 'Glob_RBracket', 'Glob_Star', 'History_Num', 'History_Op', 'History_Other', 'History_Search', 'Ignored_Comment', 'Ignored_LineCont', 'Ignored_Space', 'KW_Bang', 'KW_Case', 'KW_Const', 'KW_DLeftBracket', 'KW_Do', 'KW_Done', 'KW_Elif', 'KW_Else', 'KW_Esac', 'KW_Fi', 'KW_For', 'KW_Fork', 'KW_Func', 'KW_Function', 'KW_If', 'KW_In', 'KW_Match', 'KW_Proc', 'KW_Set', 'KW_SetGlobal', 'KW_Shell', 'KW_Then', 'KW_Time', 'KW_Until', 'KW_Var', 'KW_While', 'KW_With', 'Left_ArithSub', 'Left_ArithSub2', 'Left_Backtick', 'Left_BraceSub', 'Left_BracketSub', 'Left_CommandSub', 'Left_DollarDoubleQuote', 'Left_DollarSingleQuote', 'Left_DoubleQuote', 'Left_ParenSub', 'Left_ProcSubIn', 'Left_ProcSubOut', 'Left_SingleQuote', 'Left_VarSub', 'Lit_ArithVarLike', 'Lit_ArrayLhsClose', 'Lit_ArrayLhsOpen', 'Lit_At', 'Lit_Chars', 'Lit_Comma', 'Lit_CompDummy', 'Lit_DRightBracket', 'Lit_Digits', 'Lit_EscapedChar', 'Lit_LBrace', 'Lit_Other', 'Lit_Percent', 'Lit_Pound', 'Lit_RBrace', 'Lit_RegexMeta', 'Lit_Slash', 'Lit_TildeLike', 'Lit_VarLike', 'Node_AndOr', 'Node_Assign', 'Node_BinaryExpr', 'Node_Block', 'Node_Command', 'Node_ConstInt', 'Node_ForEach', 'Node_ForExpr', 'Node_Fork', 'Node_FuncCall', 'Node_FuncDef', 'Node_NoOp', 'Node_PostDMinus', 'Node_PostDPlus', 'Node_Subshell', 'Node_TernaryExpr', 'Node_UnaryExpr', 'Node_UnaryMinus', 'Node_UnaryPlus', 'Op_Amp', 'Op_Bang', 'Op_DAmp', 'Op_DLeftParen', 'Op_DPipe', 'Op_DRightParen', 'Op_DSemi', 'Op_LBrace', 'Op_LBracket', 'Op_LParen', 'Op_Newline', 'Op_Pipe', 'Op_PipeAmp', 'Op_RBrace', 'Op_RBracket', 'Op_RParen', 'Op_Semi', 'PS_BadBackslash', 'PS_LBrace', 'PS_Literals', 'PS_Octal3', 'PS_RBrace', 'PS_Subst', 'Redir_AndDGreat', 'Redir_AndGreat', 'Redir_Clobber', 'Redir_DGreat', 'Redir_DGreatPlus', 'Redir_DLess', 'Redir_DLessDash', 'Redir_Great', 'Redir_GreatAnd', 'Redir_GreatPlus', 'Redir_Less', 'Redir_LessAnd', 'Redir_LessGreat', 'Redir_TLess', 'Right_ArithSub', 'Right_ArrayLiteral', 'Right_Backtick', 'Right_CasePat'.., 'Right_CommandSub', 'Right_DollarDoubleQuote', 'Right_DollarSingleQuote', 'Right_DoubleQuote', 'Right_ExtGlob', 'Right_FuncDef', 'Right_SingleQuote', 'Right_Subshell', 'Right_VarSub', 'Undefined_Tok', 'Unknown_Tok', 'VOp0_A', 'VOp0_E', 'VOp0_P', 'VOp0_Q', 'VOp0_a', 'VOp1_Caret', 'VOp1_Comma', 'VOp1_DCaret', 'VOp1_DComma', 'VOp1_DPercent', 'VOp1_DPound', 'VOp1_Percent', 'VOp1_Pound', 'VOp2_Colon', 'VOp2_LBracket', 'VOp2_RBracket', 'VOp2_Slash', 'VSub_At', 'VSub_Bang', 'VSub_Dollar', 'VSub_DollarName', 'VSub_Hyphen', 'VSub_Name', 'VSub_Number', 'VSub_Pound', 'VSub_QMark', 'VSub_Star', 'VTest_ColonEquals', 'VTest_ColonHyphen', 'VTest_ColonPlus', 'VTest_ColonQMark', 'VTest_Equals', 'VTest_Hyphen', 'VTest_Plus', 'VTest_QMark', 'WS_Space', 'Word_Compound', '__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__']
{'-G': , '-L': , '-O': , '-N': , '-S': , '-R': , '-e': , '-d': , '-g': , '-f': , '-a': , '-c': , '-b': , '-o': , '-n': , '-h': , '-u': , '-t': , '-w': , '-v': , '-p': , '-s': , '-r': , '-x': , '-z': }
STATS: 299 tokens in 31 groups: [1, 1, 1, 3, 3, 1, 19, 3, 4, 17, 14, 2, 14, 13, 5, 10, 8, 5, 8, 4, 43, 19, 1, 27, 5, 4, 9, 11, 6, 25, 13]
13 BIG groups: [9, 10, 11, 13, 13, 14, 14, 17, 19, 19, 25, 27, 43]
(token id:Op_Newline val:'\n' span_id:None)
--
Arith
Assign
Backtick
BoolBinary
BoolUnary
Char
ControlFlow
Eof
Eol
ExtGlob
Fd
Glob
History
Ignored
KW
Left
Lit
Node
Op
PS
Redir
Right
Undefined
Unknown
VOp0
VOp1
VOp2
VSub
VTest
WS
Word
Number of Kinds: 31
Number of IDs: 302
['AddBoolKinds', 'AddKinds', 'IdSpec', 'SetupTestBuiltin', '_BINARY_INT', '_BINARY_PATH', '_Dash', '_UNARY_OTHER_CHARS', '_UNARY_PATH_CHARS', '_UNARY_STR_CHARS', '__builtins__', '__doc__', '__file__', '__name__', '__package__', 'log', 'print_function', 'util']
core/process_test.pyc
.osh warning: PID 7991 stopped, but osh didn't start it
osh warning: PID 7992 stopped, but osh didn't start it
Eosh warning: PID 7993 stopped, but osh didn't start it
osh warning: PID 7995 stopped, but osh didn't start it
Eosh warning: PID 7996 stopped, but osh didn't start it
Sun Mar 3 09:26:25 PST 2019
date returned 0
osh error: 'does-not-exist': No such file or directory
E.
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.074s
FAILED (errors=3)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
FDS BEFORE ['0', '1', '2', '3', '5', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
..
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.089s
FAILED (errors=2)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
FDS BEFORE ['0', '1', '2', '3', '5', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
1
FDS AFTER ['0', '1', '2', '3', '5', '7', '10', '11', '12', '13', '14']
EEEdate returned 0
date returned 0
Sun Mar 3 09:26:25 PST 2019
Eosh error: 'does-not-exist': No such file or directory
Edate returned 0
osh error: 'does-not-exist': No such file or directory
Edate returned 0
osh error: 'does-not-exist': No such file or directory
E.
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.175s
FAILED (errors=3)
osh error: 'does-not-exist': No such file or directory
.E
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.175s
FAILED (errors=3)
.
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.180s
FAILED (errors=3)
.
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.182s
FAILED (errors=3)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
[-1, -1, 1]
FDS BEFORE ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
...
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.194s
FAILED (errors=2)
..F
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
FAIL: testStdinRedirect (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AssertionError: 'one\n' != 'o'
----------------------------------------------------------------------
Ran 5 tests in 0.199s
FAILED (failures=1, errors=2)
.
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.203s
FAILED (errors=2)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
[-1, -1, 1]
FDS BEFORE ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
1
FDS AFTER ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
osh warning: PID 8001 stopped, but osh didn't start it
.
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.206s
FAILED (errors=2)
osh warning: PID 8000 stopped, but osh didn't start it
.Sun Mar 3 09:26:25 PST 2019
date returned 0
osh error: 'does-not-exist': No such file or directory
E.
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.235s
FAILED (errors=2)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
[-1, -1, 1]
[-1, -1, 1, 1]
FDS BEFORE ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
..
======================================================================
ERROR: testPipeline (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.252s
FAILED (errors=1)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
[-1, -1, 1]
[-1, -1, 1, 1]
FDS BEFORE ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
1
FDS AFTER ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
pipe_status: [-1, -1, -1, 1]
.osh warning: PID 8014 stopped, but osh didn't start it
osh warning: PID 8015 stopped, but osh didn't start it
ESun Mar 3 09:26:25 PST 2019
date returned 0
osh error: 'does-not-exist': No such file or directory
E.
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.306s
FAILED (errors=2)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
AFTER ['0', '1', '2', '3', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
FDS BEFORE ['0', '1', '2', '3', '5', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
..
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.320s
FAILED (errors=1)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
AFTER ['0', '1', '2', '3', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
FDS BEFORE ['0', '1', '2', '3', '5', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
1
FDS AFTER ['0', '1', '2', '3', '5', '7', '10', '11', '12', '13', '14']
EEEdate returned 0
date returned 0
Sun Mar 3 09:26:25 PST 2019
date returned 0
osh error: 'does-not-exist': No such file or directory
Eosh error: 'does-not-exist': No such file or directory
EEosh error: 'does-not-exist': No such file or directory
E.
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.403s
FAILED (errors=2)
date returned 0
.
======================================================================
.ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.406s
FAILED (errors=2)
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.406s
FAILED (errors=2)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
AFTER ['0', '1', '2', '3', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
[-1, -1, 1]
FDS BEFORE ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
osh error: 'does-not-exist': No such file or directory
E.
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.415s
FAILED (errors=2)
....
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.424s
FAILED (errors=1)
.
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.425s
FAILED (errors=1)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
AFTER ['0', '1', '2', '3', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
[-1, -1, 1]
FDS BEFORE ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
1
FDS AFTER ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
.
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.426s
FAILED (errors=1)
.osh warning: PID 8020 stopped, but osh didn't start it
osh warning: PID 8019 stopped, but osh didn't start it
.
======================================================================
ERROR: testPipeline2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'NoneType' object has no attribute 'Exec'
----------------------------------------------------------------------
Ran 5 tests in 0.440s
FAILED (errors=1)
.Sun Mar 3 09:26:25 PST 2019
date returned 0
osh error: 'does-not-exist': No such file or directory
E.
======================================================================
ERROR: testProcess (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 121, in __call__
return self.im_func(self.im_self, *args, **kwargs)
File "/home/andy/git/oilshell/oil/opy/byterun/pyobj.py", line 102, in __call__
retval = self._vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
SystemExit: 127
----------------------------------------------------------------------
Ran 5 tests in 0.463s
FAILED (errors=1)
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
AFTER ['0', '1', '2', '3', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
[-1, -1, 1]
[-1, -1, 1, 1]
FDS BEFORE ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
..
----------------------------------------------------------------------
Ran 5 tests in 0.478s
OK
BEFORE ['0', '1', '2', '3', '10', '11', '12', '13', '14']
AFTER ['0', '1', '2', '3', '7', '10', '11', '12', '13', '14']
------------------------------------------------------------
ls | cut -d . -f 1 | head
[-1, -1, 1]
[-1, -1, 1, 1]
FDS BEFORE ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
------------------------------------------------------------
date
------------------------------------------------------------
does-not-exist
1
FDS AFTER ['0', '1', '2', '3', '5', '7', '9', '10', '11', '12', '13', '14']
core/ui_test.pyc
oops
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
core/util_test.pyc
hello 42
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
frontend/args_test.pyc
.......
----------------------------------------------------------------------
Ran 7 tests in 0.059s
OK
- None
-- None
--+ None
--- None
---invalid None
-port ['-port', 'port', '']
--port ['--port', 'port', '']
--port-num ['--port-num', 'port-num', '']
--port-num=8000 ['--port-num=8000', 'port-num', '=8000']
--port-num= ['--port-num=', 'port-num', '=']
--port-num=x=y ['--port-num=x=y', 'port-num', '=x=y']
--port-num+ None
frontend/lex_test.pyc
..................
----------------------------------------------------------------------
Ran 18 tests in 0.135s
OK
--- echo \" \\ hi` ---
(token id:Backtick_Other val:'echo ' span_id:0)
(token id:Backtick_Quoted val:'\\"' span_id:1)
(token id:Backtick_Other val:' ' span_id:2)
(token id:Backtick_Quoted val:'\\\\' span_id:3)
(token id:Backtick_Other val:' hi' span_id:4)
(token id:Backtick_Right val:'`' span_id:5)
(token id:Eof_Real val:'' span_id:6)
--- ` ---
(token id:Backtick_Right val:'`' span_id:0)
(token id:Eof_Real val:'' span_id:1)
--- ---
(token id:Eof_Real val:'' span_id:0)
(token id:Char_Literals val:'foo bar' span_id:0)
(token id:Char_OneChar val:'\\n' span_id:1)
(token id:Left_SingleQuote val:"'" span_id:0)
[(, 'newline '), (, '\\n'), (, ' NUL '), (, '\\0'), (, ' octal '), (, '\\0377'), (, ' hex '), (, '\\x00')]
[(, 'unicode '), (, '\\u0065'), (, ' '), (, '\\U00000065')]
[(, '\\'), (, 'd '), (, '\\e'), (, ' '), (, '\\f'), (, ' '), (, '\\'), (, 'g')]
[(, 'echo hi')]
[(, 'echo '), (, '!!'), (, ' '), (, '!*'), (, ' '), (, '!^'), (, ' '), (, '!$')]
[(, 'echo '), (, '\\!'), (, '!')]
[(, 'echo '), (, '!3'), (, '...')]
[(, 'echo '), (, '!-5'), (, '...')]
[(, 'echo '), (, '!x/foo.py'), (, ' bar')]
---
[(, 'echo '), (, "'!!'"), (, ' $'), (, "'!!'"), (, ' ')]
[(, 'echo '), (, "'!! ")]
[(, 'echo '), (, "\\'"), (, ' '), (, '!!'), (, ' ')]
[(, 'foo')]
[(, '\\h'), (, ' '), (, '\\w'), (, ' '), (, '\\$')]
P '[^\\\\\\0]+'
frontend/lexer_gen_test.pyc
.
----------------------------------------------------------------------
Ran 1 test in 0.072s
OK
--- a
'"a" '
--- [a-z]
'[a-z]'
--- [a-zA-Z.]+
'[a-zA-Z.]+ '
--- [a-zA-Z_][a-zA-Z0-9_]*\+?=
'[a-zA-Z_][a-zA-Z0-9_]* "+" ? "=" '
--- [."]*
'[."]* '
--- \$
'"$" '
--- .*
'.* '
--- '\x00'
'"\\x00" '
--- \0
'"\\x00" '
--- \\
'"\\\\" '
--- [\\]
'"\\\\" '
--- .
'.'
--- [^a]
'[^a]'
--- [^a-z]
'[^a-z]'
--- [a\.]
'[a.]'
--- [0-7]{1,3}
'[0-7]{1,3} '
frontend/lexer_test.pyc
...
----------------------------------------------------------------------
Ran 3 tests in 0.003s
OK
97
86
70
52
31
29
28
26
24
19
13
12
4
2
1
Number of lex states: 15
Number of token dispatches: 494
(token id:Lit_Chars val:abc span_id:None)
(token id:Lit_LBrace val:'{' span_id:None)
(token id:Op_Semi val:';' span_id:None)
frontend/reader_test.pyc
..
----------------------------------------------------------------------
Ran 2 tests in 0.012s
OK
osh/arith_parse_test.pyc
.
)
(
()
( 1 , (word.TokenWord token:(token id:Eof_Real val:'' span_id:3))) None (word.TokenWord token:(token id:Eof_Real val:'' span_id:3)) None>
(1 + (3 * 4) , (word.TokenWord token:(token id:Eof_Real val:'' span_id:12))) None (word.TokenWord token:(token id:Eof_Real val:'' span_id:12)) None>
(1 + (3 * 4) 5 , (word.CompoundWord parts:[(word_part.LiteralPart token:(token id:Lit_Digits val:5 span_id:13))])) None (word.CompoundWord parts:[(word_part.LiteralPart token:(token id:Lit_Digits val:5 span_id:13))]) None>
;
- ;
expression: (7)
node: (arith_expr.ArithWord
w: (word.CompoundWord parts:[(word_part.LiteralPart token:(token id:Lit_Digits val:7 span_id:1))])
)
expression: 1 + 2 - 3
node: (arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithBinary
op_id: Arith_Plus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:1 span_id:0))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:4))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:8))]
)
)
)
expression: 1 + 2 * 3
node: (arith_expr.ArithBinary
op_id: Arith_Plus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:1 span_id:0))]
)
)
right:
(arith_expr.ArithBinary
op_id: Arith_Star
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:4))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:8))]
)
)
)
)
expression: 7 - 9 * (2 - 3)
node: (arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:7 span_id:0))]
)
)
right:
(arith_expr.ArithBinary
op_id: Arith_Star
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:9 span_id:4))]
)
)
right:
(arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:9))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:13))]
)
)
)
)
)
expression: 2 * 3 * 4
node: (arith_expr.ArithBinary
op_id: Arith_Star
left:
(arith_expr.ArithBinary
op_id: Arith_Star
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:0))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:4))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:4 span_id:8))]
)
)
)
expression: 2 ** 3 ** 4
node: (arith_expr.ArithBinary
op_id: Arith_DStar
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:0))]
)
)
right:
(arith_expr.ArithBinary
op_id: Arith_DStar
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:4))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:4 span_id:8))]
)
)
)
)
expression: (2 ** 3) ** 4
node: (arith_expr.ArithBinary
op_id: Arith_DStar
left:
(arith_expr.ArithBinary
op_id: Arith_DStar
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:1))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:5))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:4 span_id:10))]
)
)
)
expression: 5
node: (arith_expr.ArithWord
w: (word.CompoundWord parts:[(word_part.LiteralPart token:(token id:Lit_Digits val:5 span_id:0))])
)
expression: 4 + 2
node: (arith_expr.ArithBinary
op_id: Arith_Plus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:4 span_id:0))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:4))]
)
)
)
expression: 9 - 8 - 7
node: (arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:9 span_id:0))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:8 span_id:4))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:7 span_id:8))]
)
)
)
expression: 9 - (8 - 7)
node: (arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:9 span_id:0))]
)
)
right:
(arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:8 span_id:5))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:7 span_id:9))]
)
)
)
)
expression: (9 - 8) - 7
node: (arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:9 span_id:1))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:8 span_id:5))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:7 span_id:10))]
)
)
)
expression: 2 + 3 ** 2 * 3 + 4
node: (arith_expr.ArithBinary
op_id: Arith_Plus
left:
(arith_expr.ArithBinary
op_id: Arith_Plus
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:0))]
)
)
right:
(arith_expr.ArithBinary
op_id: Arith_Star
left:
(arith_expr.ArithBinary
op_id: Arith_DStar
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:4))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:8))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:12))]
)
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:4 span_id:16))]
)
)
)
expression: 4 * 3 / 2
node: (arith_expr.ArithBinary
op_id: Arith_Slash
left:
(arith_expr.ArithBinary
op_id: Arith_Star
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:4 span_id:0))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:4))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:8))]
)
)
)
expression: 3 * 2 % 4
node: (arith_expr.ArithBinary
op_id: Arith_Percent
left:
(arith_expr.ArithBinary
op_id: Arith_Star
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:0))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:4))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:4 span_id:8))]
)
)
)
expression: + 1
node: (arith_expr.ArithUnary
op_id: Node_UnaryPlus
child:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:1 span_id:2))]
)
)
)
expression: - 5
node: (arith_expr.ArithUnary
op_id: Node_UnaryMinus
child:
(arith_expr.ArithWord
w:
(word.CompoundWord.
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:5 span_id:2))]
)
)
)
expression: -2-3
node: (arith_expr.ArithBinary
op_id: Arith_Minus
left:
(arith_expr.ArithUnary
op_id: Node_UnaryMinus
child:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:1))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:3))]
)
)
)
expression: 1 ? 2 : 3, 4 ? 5 : 6
node: (arith_expr.ArithBinary
op_id: Arith_Comma
left:
(arith_expr.TernaryOp
cond:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:1 span_id:0))]
)
)
true_expr:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:4))]
)
)
false_expr:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:8))]
)
)
)
right:
(arith_expr.TernaryOp
cond:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:4 span_id:11))]
)
)
true_expr:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:5 span_id:15))]
)
)
false_expr:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:6 span_id:19))]
)
)
)
)
expression: 1 , 2, 3
node: (arith_expr.ArithBinary
op_id: Arith_Comma
left:
(arith_expr.ArithBinary
op_id: Arith_Comma
left:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:1 span_id:0))]
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:2 span_id:4))]
)
)
)
right:
(arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:3 span_id:7))]
)
)
)
expression: 011
node: (arith_expr.ArithWord
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Digits val:011 span_id:0))]
)
)
expression: 0xA
node: (arith_expr.ArithWord
w:
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Digits val:0 span_id:0))
(word_part.LiteralPart token:(token id:Lit_ArithVarLike val:xA span_id:1))
]
)
)
expression: 64#z
node: (arith_expr.ArithWord
w:
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Digits val:64 span_id:0))
(word_part.LiteralPart token:(token id:Lit_Pound val:'#' span_id:1))
(word_part.LiteralPart token:(token id:Lit_ArithVarLike val:z span_id:2))
]
)
)
expression: 64#Z
node: (arith_expr.ArithWord
w:
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Digits val:64 span_id:0))
(word_part.LiteralPart token:(token id:Lit_Pound val:'#' span_id:1))
(word_part.LiteralPart token:(token id:Lit_ArithVarLike val:Z span_id:2))
]
)
)
expression: 64#@
node: (arith_expr.ArithWord
w:
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Digits val:64 span_id:0))
(word_part.LiteralPart token:(token id:Lit_Poun.
----------------------------------------------------------------------
Ran 3 tests in 0.711s
OK
d val:'#' span_id:1))
(word_part.LiteralPart token:(token id:Lit_At val:'@' span_id:2))
]
)
)
expression: 64#_
node: (arith_expr.ArithWord
w:
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Digits val:64 span_id:0))
(word_part.LiteralPart token:(token id:Lit_Pound val:'#' span_id:1))
(word_part.LiteralPart token:(token id:Lit_ArithVarLike val:_ span_id:2))
]
)
)
osh/bool_parse_test.pyc
.....(bool_expr.LogicalOr
left:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:0))]
)
)
right:
(bool_expr.LogicalNot
child:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:bar span_id:6))]
)
)
)
)
(bool_expr.BoolBinary
op_id: BoolBinary_GlobDEqual
left:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:0))]
)
right:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))]
)
)
(bool_expr.WordTest
w: (word.CompoundWord parts:[(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:0))])
)
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [
(word_part.SimpleVarSub token:(token id:VSub_DollarName val:'$foo' span_id:0))
(word_part.DoubleQuotedPart
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:bar span_id:2))]
spids: [1 3]
)
]
)
)
-------------
(bool_expr.BoolUnary
op_id: BoolUnary_z
child:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:2))]
)
)
(bool_expr.BoolBinary
op_id: BoolBinary_GlobDEqual
left:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:0))]
)
right:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:bar span_id:4))]
)
)
(bool_expr.BoolBinary
op_id: BoolBinary_GlobDEqual
left:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:2))]
)
right:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:bar span_id:6))]
)
)
(bool_expr.WordTest
w: (word.CompoundWord parts:[(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:0))])
)
(bool_expr.LogicalNot
child:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:2))]
)
)
)
(bool_expr.LogicalAnd
left:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:zoo span_id:0))]
)
)
right:
(bool_expr.BoolBinary
op_id: BoolBinary_GlobDEqual
left:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:6))]
)
right:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:bar span_id:10))]
)
)
)
(bool_expr.LogicalAnd
left:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:0))]
)
)
right:
(bool_expr.LogicalNot
child:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:bar span_id:6))]
)
)
)
)
(bool_expr.LogicalAnd
left:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:0))]
)
)
right:
(bool_expr.LogicalAnd
left:
(bool_expr.LogicalNot
child:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:bar span_id:6))]
)
)
)
right:
(bool_expr.WordTest
w:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:baz span_id:10))]
)
)
)
)
(bool_expr.LogicalAnd
left:
(bool_expr.BoolUnary
op_id: BoolUnary_z
.
----------------------------------------------------------------------
Ran 6 tests in 0.325s
OK
child:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:foo span_id:2))]
)
)
right:
(bool_expr.BoolUnary
op_id: BoolUnary_z
child:
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:bar span_id:8))]
)
)
)
osh/braces_test.pyc
--- }
{(Lit_RBrace '}')}
--- ,
{(Lit_Comma ',')}
--- B-{a,b}-E
{(B-) (Lit_LBrace '{') (a) (Lit_Comma ',') (b) (Lit_RBrace '}') (-E)}(word.BracedWordTree
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:6))
]
)--
--- B-{a"a",b"b",c"c"}-E
{(B-) (Lit_LBrace '{') (a) (DQ (a)) (Lit_Comma ',') (b) (DQ (b)) (Lit_Comma ',') (c) (DQ (c)) (Lit_RBrace '}')
(-E)
}(word.BracedWordTree
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))
(word_part.DoubleQuotedPart
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:4))]
spids: [3 5]
)
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:7))
(word_part.DoubleQuotedPart
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:9))]
spids: [8 10]
)
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:12))
(word_part.DoubleQuotedPart
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:14))]
spids: [13 15]
)
]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:17))
]
)--
--- B-{a,b}--{c,d}-E
{(B-) (Lit_LBrace '{') (a) (Lit_Comma ',') (b) (Lit_RBrace '}') (--) (Lit_LBrace '{') (c) (Lit_Comma ',') (d)
(Lit_RBrace '}') (-E)
}(word.BracedWordTree
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-- span_id:6))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:8))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:d span_id:10))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:12))
]
)--
--- B-{a,b,c,={d,e}}-E
{(B-) (Lit_LBrace '{') (a) (Lit_Comma ',') (b) (Lit_Comma ',') (c) (Lit_Comma ',') (Lit_Other '=')
(Lit_LBrace '{') (d) (Lit_Comma ',') (e) (Lit_RBrace '}') (Lit_RBrace '}') (-E)
}(word.BracedWordTree
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:6))]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:8))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:d span_id:10))]
)
(word.CompoundWord
. parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:e span_id:12))]
)
]
)
]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:15))
]
)
--- B-{a,={b,c}=,d}-E
{(B-) (Lit_LBrace '{') (a) (Lit_Comma ',') (Lit_Other '=') (Lit_LBrace '{') (b) (Lit_Comma ',') (c)
(Lit_RBrace '}') (Lit_Other '=') (Lit_Comma ',') (d) (Lit_RBrace '}') (-E)
}(word.BracedWordTree
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:4))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:6))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:8))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:10))
]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:d span_id:12))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:14))
]
)(word.CompoundWord parts:[(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))])
--- {a,b,}
{(Lit_LBrace '{') (a) (Lit_Comma ',') (b) (Lit_Comma ',') (Lit_RBrace '}')}(word.BracedWordTree
parts: [
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:1))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:3))]
)
(word.CompoundWord)
]
)
]
)
--- hi
{(hi)}(word.CompoundWord parts:[(word_part.LiteralPart token:(token id:Lit_Chars val:hi span_id:0))])
--- B-{a,b}-E
{(B-) (Lit_LBrace '{') (a) (Lit_Comma ',') (b) (Lit_RBrace '}') (-E)}(word.BracedWordTree
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:6))
]
)(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:6))
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:6))
]
)
--- B-{a,={b,c,d}=,e}-E
{(B-) (Lit_LBrace '{') (a) (Lit_Comma ',') (Lit_Other '=') (Lit_LBrace '{') (b) (Lit_Comma ',') (c)
(Lit_Comma ',') (d) (Lit_RBrace '}') (Lit_Other '=') (Lit_Comma ',') (e) (Lit_RBrace '}') (-E)
}(word.BracedWordTree
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:4))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:6))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:8))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:d span_id:10))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:12))
]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:e span_id:14))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:16))
]
)(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:16))
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:4))
(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:6))
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:12))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:16))
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:4))
(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:8))
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:12))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:16))
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:4))
(word_part.LiteralPart token:(token id:Lit_Chars val:d span_id:10))
(word_part.LiteralPart token:(token id:Lit_Other val:'=' span_id:12))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:16))
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Chars val:e span_id:14))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:16))
]
)
--- B-{a,b}-{c,d}-E
{(B-) (Lit_LBrace '{') (a) (Lit_Comma ',') (b) (Lit_RBrace '}') (-) (Lit_LBrace '{') (c) (Lit_Comma ',') (d)
(Lit_RBrace '}') (-E)
}(word.BracedWordTree
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:- span_id:6))
(word_part.BracedAltPart
words: [
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:8))]
)
(word.CompoundWord
parts: [(word_part.LiteralPart token:(token id:Lit_Chars val:d span_id:10))]
)
]
)
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:12))
]
)(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))
(word_part.LiteralPart token:(token id:Lit_Chars val:- span_id:6))
(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:8))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:12))
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Chars val:a span_id:2))
(word_part.LiteralPart token:(token id:Lit_Chars val:- span_id:6))
(word_part.LiteralPart token:(token id:Lit_Chars val:d span_id:10))
.
----------------------------------------------------------------------
Ran 2 tests in 1.615s
OK
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:12))
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))
(word_part.LiteralPart token:(token id:Lit_Chars val:- span_id:6))
(word_part.LiteralPart token:(token id:Lit_Chars val:c span_id:8))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:12))
]
)
(word.CompoundWord
parts: [
(word_part.LiteralPart token:(token id:Lit_Chars val:B- span_id:0))
(word_part.LiteralPart token:(token id:Lit_Chars val:b span_id:4))
(word_part.LiteralPart token:(token id:Lit_Chars val:- span_id:6))
(word_part.LiteralPart token:(token id:Lit_Chars val:d span_id:10))
(word_part.LiteralPart token:(token id:Lit_Chars val:-E span_id:12))
]
)
osh/builtin_comp_test.pyc
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
osh/builtin_test.pyc
.
----------------------------------------------------------------------
Ran 1 test in 0.008s
OK
--- 'Aa b \\ a\\ b'
2
3