summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-09-26 18:48:40 +0200
committerJulian Andres Klode <jak@debian.org>2025-09-26 18:48:40 +0200
commitd7aac1d0ebfb847d3dc4d990a4d9c3d491f34aaa (patch)
tree07eeae5640b87807b14d7c97646f89a7786d707b
parent0b6f688806098b906d0c34f101696d35a60cf778 (diff)
test-history: Do not fully remove the command line
This will particularly be useful in the next commit; just strip the path form the commandline.
-rwxr-xr-xtest/integration/test-history4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/test-history b/test/integration/test-history
index 34489fce6..76bb3bd77 100755
--- a/test/integration/test-history
+++ b/test/integration/test-history
@@ -43,14 +43,14 @@ normalizedinfo() {
apt history-info 0 | sed -E \
-e 's/^( *-?Start time *: ).*/\1dummy/' \
-e 's/^( *-?End time *: ).*/\1dummy/' \
- -e 's|^( *-?Command line *: ).*|\1dummy|'
+ -e 's|^( *-?Command line *: ).*/(.*)|\1\2|'
}
testsuccessequal "Transaction ID: 0
Start time: dummy
End time: dummy
Requested by:
-Command line: dummy
+Command line: apt-get install pkg1
Packages changed:
Install pkg1:amd64 (1)
" normalizedinfo