aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-clean.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pkg-clean.testscript')
-rw-r--r--tests/pkg-clean.testscript7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/pkg-clean.testscript b/tests/pkg-clean.testscript
index 944f98c..2922f51 100644
--- a/tests/pkg-clean.testscript
+++ b/tests/pkg-clean.testscript
@@ -1,5 +1,4 @@
# file : tests/pkg-clean.testscript
-# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
.include common.testscript auth.testscript config.testscript remote.testscript
@@ -36,7 +35,7 @@
# Prepare repositories used by tests if running in the local mode.
#
-+if ($remote != true)
++if! $remote
rep_create += 2>!
# Create the signed 'hello' repository.
@@ -48,7 +47,7 @@
&$out/hello/signature.manifest
end
-pkg_configure += -d cfg config.cxx=$quote($recall($cxx.path) $cxx.mode, true) 2>!
+pkg_configure += -d cfg config.cxx=$quote($recall($cxx.path) $cxx.config.mode, true) 2>!
pkg_disfigure += -d cfg
pkg_fetch += -d cfg 2>!
pkg_purge += -d cfg
@@ -122,7 +121,7 @@ $* 2>>EOE != 0
$pkg_configure libhello && $pkg_update libhello;
$* libhello 2>>~%EOE%;
- %rm .+%{8}
+ %(rm|rmdir) .+%{8}
cleaned libhello/1.0.0
EOE