Skip to content

Commit 00f1295

Browse files
committed
Fix test cases on Windows and Linux
We don't have pak for R 3.4.x now.
1 parent 54b5826 commit 00f1295

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/test-linux.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,17 @@ teardown() {
134134
run R-4.1.2 -q -s -e 'pak::lib_status()'
135135
[[ "$status" -eq 0 ]]
136136

137-
if ! rig ls | grep -q '^[* ] 3.4.4$'; then
138-
run rig add 3.4.4
137+
if ! rig ls | grep -q '^[* ] 3.5.3$'; then
138+
run rig add 3.5.3
139139
[[ "$status" -eq 0 ]]
140140
run rig ls
141-
echo "$output" | grep -q "^[* ] 3[.]4[.]4"
141+
echo "$output" | grep -q "^[* ] 3[.]5[.]3"
142142
fi
143143

144-
libdir=`R-3.4.4 -s -e 'cat(path.expand(Sys.getenv("R_LIBS_USER")))'`
144+
libdir=`R-3.5.3 -s -e 'cat(path.expand(Sys.getenv("R_LIBS_USER")))'`
145145
[[ "$libdir" == "" ]] && false
146146
run $SUDO rm -rf "$libdir"
147-
run $SUDO `which rig` system add-pak 3.4.4
147+
run $SUDO `which rig` system add-pak 3.5.3
148148
[[ "$status" -eq 0 ]]
149149
uid=`stat -c "%u" "$libdir"`
150150
[[ "$uid" -eq "`id -u`" ]]

tests/test-windows.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,20 @@ teardown() {
145145
}
146146

147147
@test "rm" {
148-
if ! rig ls | grep -q '^[* ] 3.4.4$'; then
149-
run rig add 3.4
148+
if ! rig ls | grep -q '^[* ] 3.5.3$'; then
149+
run rig add 3.5
150150
echo "status = ${status}"
151151
echo "output = ${output}"
152152
[[ "$status" -eq 0 ]]
153153
run rig ls
154-
echo "$output" | grep -q "^[* ] 3[.]4[.]4"
154+
echo "$output" | grep -q "^[* ] 3[.]5[.]3"
155155
fi
156-
run rig rm 3.4.4
156+
run rig rm 3.5.3
157157
echo "status = ${status}"
158158
echo "output = ${output}"
159159
[[ "$status" -eq 0 ]]
160160
run rig list
161-
echo $output | grep -vq "^[* ] 3.4.4"
161+
echo $output | grep -vq "^[* ] 3.5.3"
162162
}
163163

164164
# The quoting is very tricky here. We avoid double quotes because they

0 commit comments

Comments
 (0)