Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure all needles contain timestamp in filename #574

Merged
merged 1 commit into from Jul 23, 2019

Conversation

asdil12
Copy link
Member

@asdil12 asdil12 commented Jul 22, 2019

Ticket: https://progress.opensuse.org/issues/53171

For existing broken needles: fix_timestamp.sh

#!/bin/bash

needle=$1
timestamp=$(git log --date=short "$needle.json" | grep Date | awk '{print $2}' | tr -d - | head -n1)

git mv -v "$needle.json" "$needle-$timestamp.json"
git mv -v "$needle.png" "$needle-$timestamp.png"
./tests/test.py |& awk -F "'" '{print $2}' | while read line ; do ./fix_timestamp.sh $line ; done

This commit will also change the testsuite subproject to os-autoinst/os-autoinst-needles-tests@ed4c973 and thereby use the new testsuite that checks for timestamps.

@asdil12 asdil12 marked this pull request as ready for review July 22, 2019 14:44
@asdil12 asdil12 merged commit 87aa1e5 into os-autoinst:master Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants